]> git.baikalelectronics.ru Git - kernel.git/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)
commitf13825e2cbbbc839ad2161f25df03ffadc3c69a7
tree3e70fd441ef9fd16ed23db14aab063bbb8684aae
parent36015fa44e0441bbeed56c62a9c2bc212c51b571
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