Commit 9b7f50e3 authored by Rupesh Kumar's avatar Rupesh Kumar Committed by Lee Jones

pm2301-charger: Reference put missing after access

Added missing pm_runtime_put_sync in read & write.
Signed-off-by: default avatarRupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Reviewed-by: default avatarSandeep TRIPATHY <sandeep.tripathy@stericsson.com>
Reviewed-by: default avatarPhilippe LANGLAIS <philippe.langlais@stericsson.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment