power: supply: ab8500_fg: add missing destroy_workqueue in ab8500_fg_probe
authorGao Chao <gaochao49@huawei.com>
Wed, 8 Jun 2022 02:42:49 +0000 (10:42 +0800)
committerSebastian Reichel <sre@kernel.org>
Thu, 9 Jun 2022 19:08:06 +0000 (21:08 +0200)
commit0f5de2f0532229752d923c769a5b202ae437523b
tree37fd40753521c53ebdfe6b61ba379cec6ce82ff2
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
power: supply: ab8500_fg: add missing destroy_workqueue in ab8500_fg_probe

In ab8500_fg_probe, misses destroy_workqueue in error path, this patch
fixes that.

Fixes: 010ddb813f35 ("power: supply: ab8500_fg: Allocate wq in probe")
Signed-off-by: Gao Chao <gaochao49@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c