ACPI: Get the device power state in the course of scanning device
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 11 Aug 2008 06:55:05 +0000 (14:55 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 22 Oct 2008 21:58:00 +0000 (17:58 -0400)
commita51e145f379ae48003129610922595893e8efde0
treeb3294f55421628124709d846ebdc2efbbbc7ca11
parent08237974af22a97da59869979ef1a515524d5cc3
ACPI: Get the device power state in the course of scanning device

Get the device power state in the course of scanning device if the device
power flag is power_managable. i.e. The device has the _PSx/_PRx object.

At the same time before the drivers/acpi/power module is loaded, there is no
relation between acpi_power_resource and acpi device. So the first parameter
of acpi_power_get_state is changed to acpi_handle.

http://bugzilla.kernel.org/show_bug.cgi?id=8049
http://bugzilla.kernel.org/show_bug.cgi?id=11000

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Li Shaohua <shaohua.li@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/power.c
drivers/acpi/scan.c