commit | 3130497f5babd42b24a7febda46b46116e0adc83 | [log] [tgz] |
---|---|---|
author | Li, Aubrey <aubrey.li@linux.intel.com> | Sun Mar 02 08:53:57 2014 +0800 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Mon Mar 03 00:21:14 2014 +0100 |
tree | 3e70fd441ef9fd16ed23db14aab063bbb8684aae | |
parent | cfbf8d4857c26a8a307fb7cd258074c9dcd8c691 [diff] |
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>