Skip to content

Commit 38d4544

Browse files
zhengbin13sre
authored andcommitted
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]>
1 parent a1124c8 commit 38d4544

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/ab8500_charger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3351,6 +3351,7 @@ static int ab8500_charger_bind(struct device *dev)
33513351
ret = component_bind_all(dev, di);
33523352
if (ret) {
33533353
dev_err(dev, "can't bind component devices\n");
3354+
destroy_workqueue(di->charger_wq);
33543355
return ret;
33553356
}
33563357

0 commit comments

Comments
 (0)