summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-05 21:01:37 -0800
committerBryan Wu <cooloney@gmail.com>2013-04-01 11:04:49 -0700
commitd67eb8e66c53dd2d26d294b49969f0c3101a5368 (patch)
tree04bbfbfd13e19b347cc1898e9315ee0a731c405a /drivers
parent901b74a3c4044a07c7149365aa9c4eaa6c71964b (diff)
downloadop-kernel-dev-d67eb8e66c53dd2d26d294b49969f0c3101a5368.zip
op-kernel-dev-d67eb8e66c53dd2d26d294b49969f0c3101a5368.tar.gz
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: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/leds/leds-wm8350.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c
index ed15157..8a181d5 100644
--- a/drivers/leds/leds-wm8350.c
+++ b/drivers/leds/leds-wm8350.c
@@ -129,7 +129,10 @@ static void wm8350_led_disable(struct wm8350_led *led)
ret = regulator_disable(led->isink);
if (ret != 0) {
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;
}
OpenPOWER on IntegriCloud