power: supply: sbs-charger: use dev_err_probe
authorSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 9 Mar 2021 18:04:02 +0000 (19:04 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 2 Apr 2021 12:19:25 +0000 (14:19 +0200)
commite319f4e25a7db549c0b05a273cb23ecc575be9c2
tree2440e5bc83780a534c5ee163068aac69c1cc62da
parent166767ab913dbf79129cf5f36b15b581513b501a
power: supply: sbs-charger: 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-charger.c