mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
pm2301-charger: Reference put missing after access
Added missing pm_runtime_put_sync in read & write. Signed-off-by: Rupesh Kumar <[email protected]> Signed-off-by: Lee Jones <[email protected]> Reviewed-by: Sandeep TRIPATHY <[email protected]> Reviewed-by: Philippe LANGLAIS <[email protected]>
This commit is contained in:
parent
b64f51c4ad
commit
9b7f50e3ea
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue