commit | 6b170807cd5cac8dc6353f47a88ccb14bbf76c4f | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Sat Apr 13 13:20:07 2013 +0200 |
committer | Anton Vorontsov <anton@enomsg.org> | Tue Apr 16 19:00:01 2013 -0700 |
tree | c8c438b552aaa115cf0acdb0b5033c7cb34b1e9f | |
parent | f2c6a5fb258bdfa5aa9743b912b6b782fa631959 [diff] |
pm2301-charger: Fix suspend/resume The pm2301-charger 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. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Anton Vorontsov <anton@enomsg.org>