power: supply: ab8500: Fix the error handling path of ab8500_charger_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 28 Dec 2021 20:43:22 +0000 (21:43 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 3 Jan 2022 17:33:29 +0000 (18:33 +0100)
commitbe2c0d5418b1f44b01154a71e4501de139d0a7c9
tree74725bb88f801cec4a8dee5f3a10f89ac4d8485f
parent1c1348bf056dee665760a3bd1cd30b0be7554fc2
power: supply: ab8500: Fix the error handling path of ab8500_charger_probe()

Since the commit below, ab8500_bm_of_remove() needs to be called after a
successful ab8500_bm_of_probe() call.
This commit has only updated the remove function.

Fix the error handling path of the probe the same way.

Fixes: 6252c706cdb0 ("power: supply: ab8500: Standardize operating temperature")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_charger.c