diff options
| author | Rajendra Nayak <[email protected]> | 2010-09-30 12:14:22 +0000 |
|---|---|---|
| committer | Jean Delvare <[email protected]> | 2010-09-30 12:14:22 +0000 |
| commit | 64b4782fc9e4bdc59ae90897e2258e4ec938690e (patch) | |
| tree | 6f48bc54d8b60b562141519bb9f638c904f91d5a /lib/dynamic_debug.c | |
| parent | i2c-pca: Fix waitforcompletion() return value (diff) | |
| download | kernel-64b4782fc9e4bdc59ae90897e2258e4ec938690e.tar.gz kernel-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 <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Kevin Hilman <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
