ACPI / PM: Add check preventing transitioning to non-D0 state from D3.
authorLv Zheng <lv.zheng@intel.com>
Fri, 16 Nov 2012 01:46:28 +0000 (02:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Nov 2012 01:46:28 +0000 (02:46 +0100)
commitddc150f7a33ae0c9cb16eaac3641abc00f56316f
treed1b2cdfee5e7055e1dfa18d4fbb3dc16f22576ee
parent5133375bb46a0d6c3fba07097caed7aa5e629ccd
ACPI / PM: Add check preventing transitioning to non-D0 state from D3.

No power transitioning from D3 state up to a non-D0 state is allowed
so make acpi_device_set_power() fail and complain if such a transition
is attempted.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/bus.c