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)
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

Simple merge