summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2022-05-12 11:38:44 +0200
committerSebastian Reichel <sre@kernel.org>2022-07-17 01:00:25 +0200
commit38d45444e257f7e3f6fbd242ba42371563984093 (patch)
tree8e18251a7abc21b1988216581c0e5d1aea78e3f3 /drivers/power
parentpower: supply: ab8500: Remove flush_scheduled_work() call. (diff)
downloadlinux-38d45444e257f7e3f6fbd242ba42371563984093.tar.xz
linux-38d45444e257f7e3f6fbd242ba42371563984093.zip
power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind
ab8500_charger_bind misses destroy_workqueue in error path, this patch fixes that. Signed-off-by: Zheng Bin <zhengbin13@huawei.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ab8500_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c
index 62c958b9ec37..c19c50442761 100644
--- a/drivers/power/supply/ab8500_charger.c
+++ b/drivers/power/supply/ab8500_charger.c
@@ -3351,6 +3351,7 @@ static int ab8500_charger_bind(struct device *dev)
ret = component_bind_all(dev, di);
if (ret) {
dev_err(dev, "can't bind component devices\n");
+ destroy_workqueue(di->charger_wq);
return ret;
}