]> Pileus Git - ~andy/linux/commit
ACPI / sleep: pm_power_off needs more sanity checks to be installed
authorLi, Aubrey <aubrey.li@linux.intel.com>
Sun, 2 Mar 2014 00:53:57 +0000 (08:53 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 2 Mar 2014 23:21:14 +0000 (00:21 +0100)
commit3130497f5babd42b24a7febda46b46116e0adc83
tree3e70fd441ef9fd16ed23db14aab063bbb8684aae
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691
ACPI / sleep: pm_power_off needs more sanity checks to be installed

Sleep control and status registers need santity checks as well before
ACPI installs acpi_power_off to pm_power_off hook. The checking code in
acpi_enter_sleep_state() is too late, we should not allow a not-working
pm_power_off function to be hooked up.

Signed-off-by: Aubrey Li <aubrey.li@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c