diff options
author | Len Brown <len.brown@intel.com> | 2008-01-23 22:41:20 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-01-23 22:41:20 -0500 |
commit | ec68373c04495edbe39fb94fad963fb781e062e5 (patch) | |
tree | 0c4d57c848de4a41968f61a22b3159dc9092b05a /drivers/acpi/bus.c | |
parent | 667984d9e481e43a930a478c588dced98cb61fea (diff) |
Revert "ACPI: Fan: Drop force_power_state acpi_device option"
This reverts commit 93ad7c07ad487b036add8760dabcc35666a550ef.
http://bugzilla.kernel.org/show_bug.cgi?id=9798
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/bus.c')
-rw-r--r-- | drivers/acpi/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index d7a115c362d1..f4487c38d9f2 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -200,7 +200,7 @@ int acpi_bus_set_power(acpi_handle handle, int state) | |||
200 | * Get device's current power state | 200 | * Get device's current power state |
201 | */ | 201 | */ |
202 | acpi_bus_get_power(device->handle, &device->power.state); | 202 | acpi_bus_get_power(device->handle, &device->power.state); |
203 | if (state == device->power.state) { | 203 | if ((state == device->power.state) && !device->flags.force_power_state) { |
204 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device is already at D%d\n", | 204 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device is already at D%d\n", |
205 | state)); | 205 | state)); |
206 | return 0; | 206 | return 0; |