From: Rajendra Nayak Date: Wed, 29 Sep 2010 21:20:34 +0000 (-0700) Subject: I2C: runtime: Fix checks which make legacy suspend to never get called X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52d9c68a69c5f61b52520e32a70427e945bbd290;p=pandora-kernel.git I2C: runtime: Fix checks which make legacy suspend to never get called For devices which are not adapted to runtime PM a call to pm_runtime_suspended always returns true. Hence the pm_runtime_suspended checks below prevent legacy suspend from getting called. So do a pm_runtime_suspended check only for devices with a dev_pm_ops populated (which hence do not rely on the legacy suspend) Signed-off-by: Rajendra Nayak Cc: Rafael J. Wysocki Cc: Ben Dooks Cc: Mark Brown Cc: Jean Delvare Cc: Kevin Hilman --- Reading git-diff-tree failed