summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRupesh Kumar <rupesh.kumar@stericsson.com>2012-12-05 16:13:31 +0530
committerLee Jones <lee.jones@linaro.org>2013-03-07 12:35:57 +0800
commit9b7f50e3ea9a98f518fc4077f8bebc96717acff5 (patch)
treee5ac62ae7a4f93df078a808c43e24ae5fa75776e /drivers
parentb64f51c4adde8972afac778a63a19a30c6d5f4b0 (diff)
downloadlinux-3.10-9b7f50e3ea9a98f518fc4077f8bebc96717acff5.tar.gz
linux-3.10-9b7f50e3ea9a98f518fc4077f8bebc96717acff5.tar.bz2
linux-3.10-9b7f50e3ea9a98f518fc4077f8bebc96717acff5.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/pm2301_charger.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c
index a1fc37eca33..618c46d25a3 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;
}