diff options
author | Zheng Bin <[email protected]> | 2022-05-12 17:38:44 +0800 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2022-07-17 01:00:25 +0200 |
commit | 38d45444e257f7e3f6fbd242ba42371563984093 (patch) | |
tree | 8e18251a7abc21b1988216581c0e5d1aea78e3f3 | |
parent | a1124c84d467223c71bcf9f2710993bb6927ea5c (diff) |
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 <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
-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; } |