diff options
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index af1769a20c7a..76bf6d90c700 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -458,11 +458,9 @@ int acpi_power_transition(struct acpi_device *device, int state) | |||
458 | } | 458 | } |
459 | 459 | ||
460 | end: | 460 | end: |
461 | if (result) { | 461 | if (result) |
462 | device->power.state = ACPI_STATE_UNKNOWN; | 462 | device->power.state = ACPI_STATE_UNKNOWN; |
463 | printk(KERN_WARNING PREFIX "Transitioning device [%s] to D%d\n", | 463 | else { |
464 | device->pnp.bus_id, state); | ||
465 | } else { | ||
466 | /* We shouldn't change the state till all above operations succeed */ | 464 | /* We shouldn't change the state till all above operations succeed */ |
467 | device->power.state = state; | 465 | device->power.state = state; |
468 | } | 466 | } |