mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
fixup! (CR) Optimize awinic vibrator driver
Mot-CRs-Fixed: (CR) Signed-off-by: Konstantin Makariev <hcv867@motorola.com> Change-Id: I86689be9e84cf6ff6c24105df1912f008cd31c63 Reviewed-on: https://gerrit.mot.com/1209581 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c7ede3e172
commit
27c7458edd
1 changed files with 1 additions and 0 deletions
|
|
@ -686,6 +686,7 @@ static int aw869x_get_sys_battery_info(char *dev)
|
|||
batt_psy = power_supply_get_by_name("battery");
|
||||
rc = power_supply_get_property(batt_psy, POWER_SUPPLY_PROP_VOLTAGE_NOW,
|
||||
&prop);
|
||||
power_supply_put(batt_psy);
|
||||
if (rc < 0) {
|
||||
pr_err("Error in getting charging status, rc=%d\n", rc);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue