Commit 38d45444 authored by Zheng Bin's avatar Zheng Bin Committed by Sebastian Reichel

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: default avatarZheng Bin <zhengbin13@huawei.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a1124c84
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment