Skip to content

Commit

Permalink
pm2301-charger: Reference put missing after access
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rupesh Kumar authored and Lee Jones committed Mar 7, 2013
1 parent b64f51c commit 9b7f50e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/power/pm2301_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

Expand Down

0 comments on commit 9b7f50e

Please sign in to comment.