diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-06 00:01:37 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-04-01 14:04:49 -0400 |
commit | d67eb8e66c53dd2d26d294b49969f0c3101a5368 (patch) | |
tree | 04bbfbfd13e19b347cc1898e9315ee0a731c405a | |
parent | 901b74a3c4044a07c7149365aa9c4eaa6c71964b (diff) |
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>
-rw-r--r-- | drivers/leds/leds-wm8350.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/leds/leds-wm8350.c b/drivers/leds/leds-wm8350.c index ed15157c8f6c..8a181d56602d 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) | |||
129 | ret = regulator_disable(led->isink); | 129 | ret = regulator_disable(led->isink); |
130 | if (ret != 0) { | 130 | if (ret != 0) { |
131 | dev_err(led->cdev.dev, "Failed to disable ISINK: %d\n", ret); | 131 | dev_err(led->cdev.dev, "Failed to disable ISINK: %d\n", ret); |
132 | regulator_enable(led->dcdc); | 132 | ret = regulator_enable(led->dcdc); |
133 | if (ret != 0) | ||
134 | dev_err(led->cdev.dev, "Failed to reenable DCDC: %d\n", | ||
135 | ret); | ||
133 | return; | 136 | return; |
134 | } | 137 | } |
135 | 138 | ||