]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: suspend: consolidate handling of Sx states addendum
authorFrans Pop <elendil@planet.nl>
Thu, 20 Sep 2007 20:27:44 +0000 (22:27 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 22 Sep 2007 01:53:18 +0000 (21:53 -0400)
Make the S0 state be always reported as supported

Signed-off: Frans Pop <elendil@planet.nl>
Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/main.c

index 638172fe68256ee9a4385e0364322dc48735accb..85633c585aaba63dae682cf32a877b02298bd0b2 100644 (file)
@@ -401,9 +401,11 @@ int __init acpi_sleep_init(void)
        if (acpi_disabled)
                return 0;
 
-printk(KERN_INFO PREFIX "(supports");
+       sleep_states[ACPI_STATE_S0] = 1;
+       printk(KERN_INFO PREFIX "(supports S0");
+
 #ifdef CONFIG_SUSPEND
-       for (i = ACPI_STATE_S0; i < ACPI_STATE_S4; i++) {
+       for (i = ACPI_STATE_S1; i < ACPI_STATE_S4; i++) {
                status = acpi_get_sleep_type_data(i, &type_a, &type_b);
                if (ACPI_SUCCESS(status)) {
                        sleep_states[i] = 1;