OSDN Git Service

leds: lm3692x: Handle failure to probe the regulator
authorGuido Günther <agx@sigxcpu.org>
Sat, 21 Sep 2019 21:12:10 +0000 (14:12 -0700)
committerPavel <pavel@ucw.cz>
Sun, 3 Nov 2019 16:37:50 +0000 (17:37 +0100)
commit396128d2ffcba6e1954cfdc9a89293ff79cbfd7c
tree7ea13e1f58b5768645a6d756813ff951bfdf776f
parentd0f9cc49e9c8afae49f0efc7927156dbd555ee93
leds: lm3692x: Handle failure to probe the regulator

Instead use devm_regulator_get_optional since the regulator
is optional and check for errors.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3692x.c