aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-07-23 15:01:02 -0400
committerLen Brown <len.brown@intel.com>2012-07-26 19:25:08 -0400
commita5ca7345c1e67cd12cf75a9ec034c7d34786ae79 (patch)
tree46c6174ed1755d8623a4481031f9da6089bc1a62
parent28a33cbc24e4256c143dce96c7d93bf423229f92 (diff)
ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset
If CONFIG_ACPI_SLEEP is unset, the compiler complains that pwr_btn_event_pending is defined but not used. To silence the warning, move the definition of pwr_btn_event_pending under an appropriate #ifdef. Reported-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Tested-by: Paul E. McKenney <paul.mckenney@linaro.org> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/acpi/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 88561029cca..dca8074b670 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -57,7 +57,6 @@ MODULE_PARM_DESC(gts, "Enable evaluation of _GTS on suspend.");
57MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".); 57MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".);
58 58
59static u8 sleep_states[ACPI_S_STATE_COUNT]; 59static u8 sleep_states[ACPI_S_STATE_COUNT];
60static bool pwr_btn_event_pending;
61 60
62static void acpi_sleep_tts_switch(u32 acpi_state) 61static void acpi_sleep_tts_switch(u32 acpi_state)
63{ 62{
@@ -110,6 +109,7 @@ static int acpi_sleep_prepare(u32 acpi_state)
110 109
111#ifdef CONFIG_ACPI_SLEEP 110#ifdef CONFIG_ACPI_SLEEP
112static u32 acpi_target_sleep_state = ACPI_STATE_S0; 111static u32 acpi_target_sleep_state = ACPI_STATE_S0;
112static bool pwr_btn_event_pending;
113 113
114/* 114/*
115 * The ACPI specification wants us to save NVS memory regions during hibernation 115 * The ACPI specification wants us to save NVS memory regions during hibernation