mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
power: supply: cpcap-charger: Fix missing power_supply_put()
Fix missing power_supply_put().
Cc: Arthur Demchenkov <[email protected]>
Cc: Carl Philipp Klemm <[email protected]>
Cc: Merlijn Wajer <[email protected]>
Cc: Pavel Machek <[email protected]>
Fixes: 5688ea0492 ("power: supply: cpcap-charger: Allow changing constant charge voltage")
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
committed by
Sebastian Reichel
parent
c82a2fbe6c
commit
4bff91bb32
@@ -302,6 +302,7 @@ cpcap_charger_get_bat_const_charge_voltage(struct cpcap_charger_ddata *ddata)
|
||||
if (!error)
|
||||
voltage = prop.intval;
|
||||
}
|
||||
power_supply_put(battery);
|
||||
|
||||
return voltage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user