Skip to content

Commit

Permalink
ACPI: fan: Delete the strict check in power transition
Browse files Browse the repository at this point in the history
On some laptops the Fan device is turned on/off by controlling the
corresponding power resource. For example: If the power resource
defined in _PR0 object is turned off, it indicates that the FAN device
is in off state(the ACPI state is in D3 state).

Maybe the device is already in D3 state and expected to be transited to
D3 state. As there is no _PR3 object, the power transition can't be
finished and it will be switched to the Unknown state.

Maybe it is more reasonable that the strick check in power transistion
is deleted.

http://bugzilla.kernel.org/show_bug.cgi?id=9485

Signed-off-by: yakui.zhao@intel.com
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Zhao Yakui authored and Len Brown committed Oct 28, 2008
1 parent b1b57fb commit 676962d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/acpi/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,6 @@ int acpi_power_transition(struct acpi_device *device, int state)
cl = &device->power.states[device->power.state].resources;
tl = &device->power.states[state].resources;

if (!cl->count && !tl->count) {
result = -ENODEV;
goto end;
}

/* TBD: Resources must be ordered. */

/*
Expand Down

0 comments on commit 676962d

Please sign in to comment.