From: Rafael J. Wysocki Date: Wed, 17 Oct 2007 06:31:06 +0000 (-0700) Subject: PNP: make pnpacpi_suspend handle errors X-Git-Tag: v2.6.24-rc1~538 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e02b62084efa72f1f04c95e13295a456f394c2;p=pandora-kernel.git 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 Looks-ok-to: Pavel Machek Cc: Adam Belay Cc: Bjorn Helgaas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed