From: Mark Brown Date: Wed, 6 Mar 2013 05:01:37 +0000 (-0800) Subject: leds: wm8350: Complain if we fail to reenable DCDC X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d67eb8e66c53dd2d26d294b49969f0c3101a5368;p=linux-beck.git 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 Signed-off-by: Bryan Wu --- 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) 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; }