power: supply: sbs-manager: use dev_err_probe
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 9 Mar 2021 18:04:05 +0000 (19:04 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 2 Apr 2021 12:19:25 +0000 (14:19 +0200)
commit436ff8c9280faa670d2135a2bf2544b6c465d84a
tree35bcb7ef34c88b4e8b762b031455abbcf2f961c4
parent814ddbd9ec0b9344eb390711a115cf6f097f0044
power: supply: sbs-manager: use dev_err_probe

Introduce usage of dev_err_probe in probe routine, which
makes the code slightly more readable and removes some
lines of code. It also removes PROBE_DEFER errors being
logged by default.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-manager.c