提交 9b7f50e3 编写于 作者: R Rupesh Kumar 提交者: Lee Jones

pm2301-charger: Reference put missing after access

Added missing pm_runtime_put_sync in read & write.
Signed-off-by: NRupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Reviewed-by: NSandeep TRIPATHY <sandeep.tripathy@stericsson.com>
Reviewed-by: NPhilippe LANGLAIS <philippe.langlais@stericsson.com>
上级 b64f51c4
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册