diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-17 08:31:06 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 17:43:04 +0200 |
commit | 36e02b62084efa72f1f04c95e13295a456f394c2 (patch) | |
tree | 1fc2528c4508d83c34b25a46fee7266e2ce9f183 /drivers/pnp/manager.c | |
parent | fuse: clean up execute permission checking (diff) | |
download | linux-36e02b62084efa72f1f04c95e13295a456f394c2.tar.xz linux-36e02b62084efa72f1f04c95e13295a456f394c2.zip |
PNP: make pnpacpi_suspend handle errors
pnpacpi_suspend() doesn't check the result returned by
acpi_pm_device_sleep_state() before passing it to acpi_bus_set_power(),
which may not be desirable. Make it select the target power state of the
device using its second argument if acpi_pm_device_sleep_state() fails.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Looks-ok-to: Pavel Machek <pavel@ucw.cz>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pnp/manager.c')
0 files changed, 0 insertions, 0 deletions