Revert "ACPI: Fan: Drop force_power_state acpi_device option"
This reverts commit 93ad7c07ad
.
http://bugzilla.kernel.org/show_bug.cgi?id=9798
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user