Message ID | 1360932310-30065-38-git-send-email-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 9b7f50e3ea9a98f518fc4077f8bebc96717acff5 |
Headers | show |
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c index ea9870d..af12af8 100644 --- a/drivers/power/pm2301_charger.c +++ b/drivers/power/pm2301_charger.c @@ -139,6 +139,8 @@ static int pm2xxx_reg_read(struct pm2xxx_charger *pm2, int reg, u8 *val) else ret = 0; + pm_runtime_put_sync(pm2->dev); + return ret; } @@ -156,6 +158,8 @@ static int pm2xxx_reg_write(struct pm2xxx_charger *pm2, int reg, u8 val) else ret = 0; + pm_runtime_put_sync(pm2->dev); + return ret; }