From: Pavel Machek Subject: Re: [PATCH] ACPI: Make pnpacpi_suspend handle errors Date: Thu, 16 Aug 2007 10:41:02 +0200 Message-ID: <20070816084102.GC1283@atrey.karlin.mff.cuni.cz> References: <200708151523.43921.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200708151523.43921.rjw@sisk.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List , pm list List-Id: linux-acpi@vger.kernel.org Hi! > 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 me. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html