aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/uleds.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-09-21 14:12:10 -0700
committerPavel <pavel@ucw.cz>2019-11-03 17:37:50 +0100
commit396128d2ffcba6e1954cfdc9a89293ff79cbfd7c (patch)
tree7ea13e1f58b5768645a6d756813ff951bfdf776f /drivers/leds/uleds.c
parentleds: lm3692x: Don't overwrite return value in error path (diff)
downloadlinux-dev-396128d2ffcba6e1954cfdc9a89293ff79cbfd7c.tar.xz
linux-dev-396128d2ffcba6e1954cfdc9a89293ff79cbfd7c.zip
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>
Diffstat (limited to 'drivers/leds/uleds.c')
0 files changed, 0 insertions, 0 deletions