From: Kevin Hilman Date: Tue, 10 Jul 2012 22:29:04 +0000 (-0700) Subject: ARM: OMAP: omap_device: don't attempt late suspend if no driver bound X-Git-Tag: devel-omap-device-for-v3.7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72bb6f9b51c82c820ddef892455a85b115460904;p=pandora-kernel.git ARM: OMAP: omap_device: don't attempt late suspend if no driver bound Currently, the omap_device PM domain layer uses the late suspend and early resume callbacks to ensure devices are in their low power states. However, this is attempted even in cases where a driver probe has failed. If a driver's ->probe() method fails, the driver is likely in a state where it is not expecting its runtime PM callbacks to be called, yet currently the omap_device PM domain code attempts to call the drivers callbacks. To fix, use the omap_device driver_status field to check whether a driver is bound to the omap_device before attempting to trigger driver callbacks. Reviewed-by: Paul Walmsley Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed