All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: Len Brown <len.brown@intel.com>, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] Remove #ifdef CONFIG_PM from ACPI power-off code
Date: Thu, 12 Jul 2007 23:19:16 -0400	[thread overview]
Message-ID: <200707122319.16433.lenb@kernel.org> (raw)
In-Reply-To: <20070712145840.GJ4083@blackpad.ctb.virtua.com.br>

On Thursday 12 July 2007 10:58, Eduardo Habkost wrote:
> The ACPI poweroff code is inside a #ifdef CONFIG_PM, that was added on
> commit b35c67a46b025e8dc320b59fbe5c283094e1d7f5. The #ifdef is not
> necessary because the poweroff code compiles and works even if
> CONFIG_PM is disabled. This patch removes the #ifdef around the code.

the patch is correct, but the comment is not,
as it should not be possible to build CONFIG_ACPI w/o CONFIG_PM,

-Len

> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  drivers/acpi/sleep/poweroff.c |    4 ----
>  1 files changed, 0 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/acpi/sleep/poweroff.c b/drivers/acpi/sleep/poweroff.c
> index d9801ef..5d6ba10 100644
> --- a/drivers/acpi/sleep/poweroff.c
> +++ b/drivers/acpi/sleep/poweroff.c
> @@ -37,8 +37,6 @@ #endif
>  	return 0;
>  }
>  
> -#ifdef CONFIG_PM
> -
>  void acpi_power_off(void)
>  {
>  	/* acpi_sleep_prepare(ACPI_STATE_S5) should have already been called */
> @@ -94,5 +92,3 @@ static int acpi_poweroff_init(void)
>  }
>  
>  late_initcall(acpi_poweroff_init);
> -
> -#endif				/* CONFIG_PM */
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2007-07-13  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 14:58 [PATCH] Remove #ifdef CONFIG_PM from ACPI power-off code Eduardo Habkost
2007-07-13  3:19 ` Len Brown [this message]
2007-07-13 12:55   ` Eduardo Pereira Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707122319.16433.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=ehabkost@redhat.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.