summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-01-10 21:53:49 +0200
committerSebastian Reichel <sre@kernel.org>2021-01-14 23:42:13 +0100
commit4bff91bb3231882b530af794c92ac3a5fe199481 (patch)
treef9b51c157526d3417663032acedaa8fd420dc98d /drivers/power
parentc82a2fbe6c02d5caf5a3312f6ea119da450ccee0 (diff)
downloadlinux-4bff91bb3231882b530af794c92ac3a5fe199481.tar.gz
linux-4bff91bb3231882b530af794c92ac3a5fe199481.tar.bz2
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')
-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;
}