summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/cpcap-charger.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-01-10 20:53:49 +0100
committerSebastian Reichel <sre@kernel.org>2021-01-14 23:42:13 +0100
commit4bff91bb3231882b530af794c92ac3a5fe199481 (patch)
treef9b51c157526d3417663032acedaa8fd420dc98d /drivers/power/supply/cpcap-charger.c
parentpower: supply: Add battery gauge driver for Acer Iconia Tab A500 (diff)
downloadlinux-4bff91bb3231882b530af794c92ac3a5fe199481.tar.xz
linux-4bff91bb3231882b530af794c92ac3a5fe199481.zip
power: supply: cpcap-charger: Fix missing power_supply_put()
Fix missing power_supply_put(). Cc: Arthur Demchenkov <spinal.by@gmail.com> Cc: Carl Philipp Klemm <philipp@uvos.xyz> Cc: Merlijn Wajer <merlijn@wizzup.org> Cc: Pavel Machek <pavel@ucw.cz> Fixes: 5688ea049233 ("power: supply: cpcap-charger: Allow changing constant charge voltage") Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/cpcap-charger.c')
-rw-r--r--drivers/power/supply/cpcap-charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c
index 804ac7f84c30..2c5f2246c6ea 100644
--- a/drivers/power/supply/cpcap-charger.c
+++ b/drivers/power/supply/cpcap-charger.c
@@ -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;
}