diff mbox

ACPI: eliminate unused variable warning for !ACPI_SLEEP

Message ID 4CFE583902000078000266E9@vpn.id2.novell.com (mailing list archive)
State Accepted
Headers show

Commit Message

Jan Beulich Dec. 7, 2010, 2:52 p.m. UTC
None
diff mbox

Patch

--- linux-2.6.37-rc5/drivers/acpi/sleep.c
+++ 2.6.37-rc5-acpi-sleep-warning/drivers/acpi/sleep.c
@@ -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_s
 }
 
 #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