Skip to content

Commit

Permalink
leds: wm8350: Complain if we fail to reenable DCDC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Bryan Wu committed Apr 1, 2013
1 parent 901b74a commit d67eb8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/leds/leds-wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d67eb8e

Please sign in to comment.