]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/power.c
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[linux-2.6-omap-h63xx.git] / drivers / acpi / power.c
index 00d6118ff1efeab52c7b8198141b8dfe65a2c218..1ef338545dfef977034a490d56ae9c5f043eb948 100644 (file)
@@ -455,6 +455,10 @@ int acpi_power_transition(struct acpi_device *device, int state)
                        goto end;
        }
 
+       if (device->power.state == state) {
+               goto end;
+       }
+
        /*
         * Then we dereference all power resources used in the current list.
         */