pm2301-charger: Reference put missing after access

Added missing pm_runtime_put_sync in read & write.

Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Sandeep TRIPATHY <sandeep.tripathy@stericsson.com>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
This commit is contained in:
Rupesh Kumar 2012-12-05 16:13:31 +05:30 committed by Lee Jones
parent b64f51c4ad
commit 9b7f50e3ea

View File

@ -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;
}