From: Zhao Yakui Date: Mon, 11 Aug 2008 06:55:05 +0000 (+0800) Subject: ACPI: Get the device power state in the course of scanning device X-Git-Tag: v2.6.28-rc1~26^2~27^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51e145f379ae48003129610922595893e8efde0;p=pandora-kernel.git 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 Signed-off-by: Li Shaohua Signed-off-by: Andi Kleen Signed-off-by: Len Brown --- Reading git-diff-tree failed