power: supply: ab8500: Use dev_err_probe() for IIO channels
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Dec 2020 10:57:12 +0000 (11:57 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 12 Dec 2020 21:11:18 +0000 (22:11 +0100)
commit36f1de0d5c463092485c73ab639c348d1e28e356
tree65d7e71e10625f9177f773132f5a9317f68b2386
parent807042539d8ed11299c9278e55d2cb6df8d04a39
power: supply: ab8500: Use dev_err_probe() for IIO channels

The code obtaining the ADC channels is outdated: it is
trying to work around the IIO subsystem not returning
the right -EPROBE_DEFER error code. Fix this up
by using the dev_err_probe() helper so we defer silently
where appropriate and not bail out if the IIO core
returns -EPROBE_DEFER as happens now.

Cc: Marcus Cooper <codekipper@gmail.com>
Signed-off-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_charger.c
drivers/power/supply/ab8500_fg.c