ACPI: Fix acpi_pm_device_sleep_state()
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 10 Jan 2008 23:10:38 +0000 (00:10 +0100)
committerLen Brown <len.brown@intel.com>
Sat, 12 Jan 2008 04:21:52 +0000 (23:21 -0500)
commitad3399c378993152f12c23304ee56d7f9108e758
tree291b224f242b9275048475a50fcb3f6cd7fec7a6
parent88fb61e4ba263685a0d5b82c7e9cd6f22a9e6a9d
ACPI: Fix acpi_pm_device_sleep_state()

Fix acpi_pm_device_sleep_state() to return the value returned
by _SxD if the device is supposed to wake up the system from
given sleep state and the evaluation of _SxW fails (e.g. _SxW
is not present).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/main.c