Skip to content
Commit 166767ab authored by Sebastian Reichel's avatar Sebastian Reichel
Browse files

power: supply: sbs-battery: 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, which are common when the battery is
waiting for the charger driver to be registered.

This also cleans up a useless goto and instead returns
directly.

Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 33ae8b03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment