diff options
author | Lars-Peter Clausen <[email protected]> | 2013-04-11 11:24:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-04-11 12:39:02 -0700 |
commit | 1c9354b0973a59a0292ec64e0b4dde7b9462931a (patch) | |
tree | ebe40d8459363ae6692ef73ce6bf2f6f4f8abf0a /net/lapb/lapb_in.c | |
parent | a42f82f57a6411c89538a8c0a44150f67e449a4a (diff) |
misc: apds9802als: Fix suspend/resume
The apds9802als driver implements runtime pm and at the same time uses the
legacy pm callbacks for suspend and resume. This does not work since the i2c
core wont look at the legacy pm callbacks if a driver has the 'pm' field set.
This patch fixes it by moving over to dev_pm_ops for suspend/resume as well.
Since both runtime pm and suspend/resume behave the same way this can easily be
done using the UNIVERSAL_DEV_PM_OPS macro.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Cc: Hong Liu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions