Revert "ACPI: Fan: Drop force_power_state acpi_device option"
[linux-2.6.git] / drivers / acpi / bus.c
index d7a115c..f4487c3 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;