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 <zhengbin13@huawei.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent a1124c8 commit 38d4544

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)