power: supply: ab8500: Cleanup probe in reverse order
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 4 Oct 2019 15:07:36 +0000 (17:07 +0200)
committerSebastian Reichel <sre@kernel.org>
Sun, 20 Oct 2019 13:17:15 +0000 (15:17 +0200)
commitccc023a58175565b91f6d1996cde4dfe93b04808
treea18ba92ecf4ad31cc80371dd23e5a61aa195194e
parent1a18f7e26a87ed72c95aeec5492d70bd555acfc3
power: supply: ab8500: Cleanup probe in reverse order

It is logical to cleanup in probe's error path in reverse order to
previous actions.  It also makes easier to add additional goto labels
within this error path.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_btemp.c
drivers/power/supply/ab8500_fg.c