diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2020-12-12 11:57:12 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-12-12 22:11:18 +0100 |
commit | 36f1de0d5c463092485c73ab639c348d1e28e356 (patch) | |
tree | 65d7e71e10625f9177f773132f5a9317f68b2386 /drivers/power/supply/generic-adc-battery.c | |
parent | 807042539d8ed11299c9278e55d2cb6df8d04a39 (diff) |
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>
Diffstat (limited to 'drivers/power/supply/generic-adc-battery.c')
0 files changed, 0 insertions, 0 deletions