diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2008-10-27 09:05:39 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-28 06:39:59 +0100 |
commit | 676962dac6e267ce7c13f73962208f9124a084bb (patch) | |
tree | 552f485f609023f38d65ffb7614e51fd81c30588 /drivers/acpi | |
parent | ACPI: fix de-reference bug in power resource driver (diff) | |
download | linux-676962dac6e267ce7c13f73962208f9124a084bb.tar.xz linux-676962dac6e267ce7c13f73962208f9124a084bb.zip |
ACPI: fan: Delete the strict check in power transition
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/power.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 30d4a5282a2d..89111cd28ed8 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -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. */ /* |