From: Rafael J. Wysocki Date: Tue, 22 Jan 2013 11:56:35 +0000 (+0100) Subject: ACPI / PM: Fix device power state value after transitions to D3cold X-Git-Tag: v3.9-rc1~146^2~10^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5656271b0221a53e9f74856385112fdcec0dd60;p=pandora-kernel.git ACPI / PM: Fix device power state value after transitions to D3cold When a transition to the D3cold power state is requested, acpi_device_set_power() first carries out a transition to D3hot and then turns off the device's power resources. However, it fails to update the device's power.state field appropriately and D3hot is stored in it as a result. Fix this, but make sure that the device's power state will be D3hot if its power resources cannot be turned off in the final step. Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed