From: Rafael J. Wysocki Date: Wed, 24 Nov 2010 23:08:36 +0000 (+0100) Subject: ACPI / PM: Add function for device power state initialization X-Git-Tag: v2.6.38-rc1~68^2~20^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade3e7fef794781c0798d0cf0f046123842ba550;p=pandora-kernel.git ACPI / PM: Add function for device power state initialization Add function acpi_bus_init_power() for getting the initial power state of an ACPI device and reference counting its power resources as appropriate. Make acpi_bus_get_power_flags() use the new function instead of acpi_bus_get_power() that updates device->power.state without reference counting the device's power resources. Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown --- Reading git-diff-tree failed