Skip to content

Commit

Permalink
ACPI: eliminate unused variable warning for !ACPI_SLEEP
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Jan Beulich authored and Len Brown committed Dec 11, 2010
1 parent 66c3ec4 commit 091aad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

static u8 sleep_states[ACPI_S_STATE_COUNT];

static u32 acpi_target_sleep_state = ACPI_STATE_S0;

static void acpi_sleep_tts_switch(u32 acpi_state)
{
union acpi_object in_arg = { ACPI_TYPE_INTEGER };
Expand Down Expand Up @@ -81,6 +79,8 @@ static int acpi_sleep_prepare(u32 acpi_state)
}

#ifdef CONFIG_ACPI_SLEEP
static u32 acpi_target_sleep_state = ACPI_STATE_S0;

/*
* The ACPI specification wants us to save NVS memory regions during hibernation
* and to restore them during the subsequent resume. Windows does that also for
Expand Down

0 comments on commit 091aad6

Please sign in to comment.