diff options
Diffstat (limited to 'drivers/acpi/sleep/poweroff.c')
-rw-r--r-- | drivers/acpi/sleep/poweroff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/sleep/poweroff.c b/drivers/acpi/sleep/poweroff.c index a5f947de879b..af7935a95bcc 100644 --- a/drivers/acpi/sleep/poweroff.c +++ b/drivers/acpi/sleep/poweroff.c | |||
@@ -21,9 +21,7 @@ int acpi_sleep_prepare(u32 acpi_state) | |||
21 | { | 21 | { |
22 | #ifdef CONFIG_ACPI_SLEEP | 22 | #ifdef CONFIG_ACPI_SLEEP |
23 | /* do we have a wakeup address for S2 and S3? */ | 23 | /* do we have a wakeup address for S2 and S3? */ |
24 | /* Here, we support only S4BIOS, those we set the wakeup address */ | 24 | if (acpi_state == ACPI_STATE_S3) { |
25 | /* S4OS is only supported for now via swsusp.. */ | ||
26 | if (acpi_state == ACPI_STATE_S3 || acpi_state == ACPI_STATE_S4) { | ||
27 | if (!acpi_wakeup_address) { | 25 | if (!acpi_wakeup_address) { |
28 | return -EFAULT; | 26 | return -EFAULT; |
29 | } | 27 | } |