leds: lm3692x: Handle failure to probe the regulator
[ Upstream commit 396128d2 ] Instead use devm_regulator_get_optional since the regulator is optional and check for errors. Signed-off-by: NGuido Günther <agx@sigxcpu.org> Acked-by: NPavel Machek <pavel@ucw.cz> Reviewed-by: NDan Murphy <dmurphy@ti.com> Signed-off-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录