summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-i801.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2010-09-30 14:14:22 +0200
committerJean Delvare <khali@endymion.delvare>2010-09-30 14:14:22 +0200
commit64b4782fc9e4bdc59ae90897e2258e4ec938690e (patch)
tree6f48bc54d8b60b562141519bb9f638c904f91d5a /drivers/i2c/busses/i2c-i801.c
parenti2c-pca: Fix waitforcompletion() return value (diff)
downloadlinux-64b4782fc9e4bdc59ae90897e2258e4ec938690e.tar.xz
linux-64b4782fc9e4bdc59ae90897e2258e4ec938690e.zip
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 <rnayak@ti.com> Acked-by: Rafael J. Wysocki <rjw@sisk.pl> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
0 files changed, 0 insertions, 0 deletions