提交 d67eb8e6 编写于 作者: M Mark Brown 提交者: Bryan Wu

leds: wm8350: Complain if we fail to reenable DCDC

Provide some trace, though the hardware is most likely non-functional if
this happens.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NBryan Wu <cooloney@gmail.com>
上级 901b74a3
...@@ -129,7 +129,10 @@ static void wm8350_led_disable(struct wm8350_led *led) ...@@ -129,7 +129,10 @@ static void wm8350_led_disable(struct wm8350_led *led)
ret = regulator_disable(led->isink); ret = regulator_disable(led->isink);
if (ret != 0) { if (ret != 0) {
dev_err(led->cdev.dev, "Failed to disable ISINK: %d\n", ret); dev_err(led->cdev.dev, "Failed to disable ISINK: %d\n", ret);
regulator_enable(led->dcdc); ret = regulator_enable(led->dcdc);
if (ret != 0)
dev_err(led->cdev.dev, "Failed to reenable DCDC: %d\n",
ret);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册