diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2022-05-12 17:38:44 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2022-07-17 01:00:25 +0200 |
commit | 38d45444e257f7e3f6fbd242ba42371563984093 (patch) | |
tree | 8e18251a7abc21b1988216581c0e5d1aea78e3f3 /drivers/power | |
parent | a1124c84d467223c71bcf9f2710993bb6927ea5c (diff) | |
download | linux-38d45444e257f7e3f6fbd242ba42371563984093.tar.gz linux-38d45444e257f7e3f6fbd242ba42371563984093.tar.bz2 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.c | 1 |
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; } |