pm2301-charger: Fix suspend/resume
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 13 Apr 2013 11:20:07 +0000 (13:20 +0200)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 17 Apr 2013 02:00:01 +0000 (19:00 -0700)
commit6b170807cd5cac8dc6353f47a88ccb14bbf76c4f
treec8c438b552aaa115cf0acdb0b5033c7cb34b1e9f
parentf2c6a5fb258bdfa5aa9743b912b6b782fa631959
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>
drivers/power/pm2301_charger.c