diff options
Diffstat (limited to 'drivers/acpi/sleep/main.c')
-rw-r--r-- | drivers/acpi/sleep/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index c79edcb8e842..2cbb9aabd00e 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c | |||
@@ -24,7 +24,9 @@ | |||
24 | 24 | ||
25 | u8 sleep_states[ACPI_S_STATE_COUNT]; | 25 | u8 sleep_states[ACPI_S_STATE_COUNT]; |
26 | 26 | ||
27 | #ifdef CONFIG_PM_SLEEP | ||
27 | static u32 acpi_target_sleep_state = ACPI_STATE_S0; | 28 | static u32 acpi_target_sleep_state = ACPI_STATE_S0; |
29 | #endif | ||
28 | 30 | ||
29 | int acpi_sleep_prepare(u32 acpi_state) | 31 | int acpi_sleep_prepare(u32 acpi_state) |
30 | { | 32 | { |
@@ -299,6 +301,7 @@ int acpi_suspend(u32 acpi_state) | |||
299 | return -EINVAL; | 301 | return -EINVAL; |
300 | } | 302 | } |
301 | 303 | ||
304 | #ifdef CONFIG_PM_SLEEP | ||
302 | /** | 305 | /** |
303 | * acpi_pm_device_sleep_state - return preferred power state of ACPI device | 306 | * acpi_pm_device_sleep_state - return preferred power state of ACPI device |
304 | * in the system sleep state given by %acpi_target_sleep_state | 307 | * in the system sleep state given by %acpi_target_sleep_state |
@@ -373,6 +376,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int wake, int *d_min_p) | |||
373 | *d_min_p = d_min; | 376 | *d_min_p = d_min; |
374 | return d_max; | 377 | return d_max; |
375 | } | 378 | } |
379 | #endif | ||
376 | 380 | ||
377 | static void acpi_power_off_prepare(void) | 381 | static void acpi_power_off_prepare(void) |
378 | { | 382 | { |