From: Rajendra Nayak Date: Thu, 30 Sep 2010 12:14:22 +0000 (+0200) Subject: i2c: Fix checks which cause legacy suspend to never get called X-Git-Tag: v2.6.36-rc8~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b4782fc9e4bdc59ae90897e2258e4ec938690e;p=pandora-kernel.git i2c: Fix checks which cause 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 Acked-by: Rafael J. Wysocki Cc: Ben Dooks Cc: Mark Brown Cc: Kevin Hilman Signed-off-by: Jean Delvare --- Reading git-diff-tree failed