diff options
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 0ba7dfbbb2ee..01ce311ed6ee 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -412,6 +412,10 @@ int acpi_power_transition(struct acpi_device *device, int state) | |||
412 | goto end; | 412 | goto end; |
413 | } | 413 | } |
414 | 414 | ||
415 | if (device->power.state == state) { | ||
416 | goto end; | ||
417 | } | ||
418 | |||
415 | /* | 419 | /* |
416 | * Then we dereference all power resources used in the current list. | 420 | * Then we dereference all power resources used in the current list. |
417 | */ | 421 | */ |