]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88eaf0cf99a27d23352295709e8d5a5e9de75bfb
treea18ba92ecf4ad31cc80371dd23e5a61aa195194e
parentd422e29601da90054fd51c8c6b4fa3ddcfb54030
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