: ACPI: Cleanup in ACPI device power state transition
PATCH 1/1 : ACPI: Cleanup in ACPI device power state transition
From: Zhao Yakui <[email protected]>
Cleanup in the function of acpi device power state transition. When the ACPI device can't be transited to the target D-state, OS should report the warning message of "Failure in transiting device [%s] to D%d state" instead of "Transiting device[%s] to D%d state".
Signed-off-by Zhao Yakui <[email protected]>
--- drivers/acpi/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/bus.c +1 -1
@@ -321,7 +321,7 @@ end:if (result) printk(KERN_WARNING PREFIX -"Transitioning device [%s] to D%d\n" , +"Failure in transiting device [%s] to D%d\n" , device->pnp.bus_id, state);else { device->power.state = state;