aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorSebastian Reichel <[email protected]>2021-03-09 19:04:01 +0100
committerSebastian Reichel <[email protected]>2021-04-02 14:19:25 +0200
commit166767ab913dbf79129cf5f36b15b581513b501a (patch)
tree49d60d60bb9a14b66601eaa2ce6ebf579dd700ca /lib/mpi/mpi-sub-ui.c
parent33ae8b03462e6cab130b505f97633feacf1743d0 (diff)
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: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions