ACPI: eliminate unused variable warning for !ACPI_SLEEP
authorJan Beulich <JBeulich@novell.com>
Tue, 7 Dec 2010 14:52:25 +0000 (14:52 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 11 Dec 2010 07:01:48 +0000 (02:01 -0500)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep.c

index 721d93b3ceee78c3b271f5f84ffe4fc795e435e1..2182c5579230d3e92031ed5fef82f43a9dd5a23b 100644 (file)
@@ -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 };
@@ -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