]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/acpi/bus.c
Revert "ACPI: Fan: Drop force_power_state acpi_device option"
[linux-2.6-omap-h63xx.git] / drivers / acpi / bus.c
index d7a115c362d1b53c84a61164c51ff24036684b28..f4487c38d9f294893ebc460f5f05c27b3918b77d 100644 (file)
@@ -200,7 +200,7 @@ int acpi_bus_set_power(acpi_handle handle, int state)
         * Get device's current power state
         */
        acpi_bus_get_power(device->handle, &device->power.state);
-       if (state == device->power.state) {
+       if ((state == device->power.state) && !device->flags.force_power_state) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device is already at D%d\n",
                                  state));
                return 0;