]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:05:10 +0000 (00:05 -0500)
commitb9a79438b95aabc7a9df95716ee939198647a703
tree0b935fdb35cd203250db134f1998b7e9527ea66d
parent4ebe6a4f4204f29d285366aed2bcc5f3190c9b89
leds: lm3692x: Handle failure to probe the regulator

BugLink: https://bugs.launchpad.net/bugs/1860816
[ Upstream commit 396128d2ffcba6e1954cfdc9a89293ff79cbfd7c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/leds/leds-lm3692x.c