diff mbox

: ACPI: Cleanup in ACPI device power state transition

Message ID 1242005076.3773.133.camel@localhost.localdomain (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Zhao, Yakui May 11, 2009, 1:24 a.m. UTC
From: Zhao Yakui <yakui.zhao@intel.com>

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 <yakui.zhao@intel.com>
---
 drivers/acpi/bus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-2.6/drivers/acpi/bus.c
===================================================================
--- linux-2.6.orig/drivers/acpi/bus.c	2009-05-11 08:57:49.000000000 +0800
+++ linux-2.6/drivers/acpi/bus.c	2009-05-11 09:16:27.000000000 +0800
@@ -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;