power: supply: lego_ev3: Simplify with dev_err_probe()
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 26 Aug 2020 14:48:58 +0000 (16:48 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 26 Aug 2020 15:25:45 +0000 (17:25 +0200)
commite03e3601fb9fc2aa5dc8b483944006c01ffa6aa5
tree9fb98b6d717b8bfa58785ff6519164426554b455
parent31873dc23c3fa19b86fb543935f284ebbddf486e
power: supply: lego_ev3: Simplify with dev_err_probe()

Common pattern of handling deferred probe can be simplified with
dev_err_probe().  Less code and also it prints the error value.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/lego_ev3_battery.c