]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11455c9683e676e09b0e61037f48706f2d35f306
tree74725bb88f801cec4a8dee5f3a10f89ac4d8485f
parent68772b17400d71388d4e7cab9b9bbf05c81858fc
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: 15be09318da4 ("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