Re: [PATCH] pm2301-charger: Fix suspend/resume

2013-04-16 Thread Anton Vorontsov
On Sat, Apr 13, 2013 at 01:20:07PM +0200, Lars-Peter Clausen wrote: > 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' fie

[PATCH] pm2301-charger: Fix suspend/resume

2013-04-13 Thread Lars-Peter Clausen
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/resum