On Tue, Mar 5, 2013 at 9:01 PM, Mark Brown
<[email protected]> wrote:
> Provide some trace, though the hardware is most likely non-functional if
> this happens.
>

Thanks for the update, I will merge it.

-Bryan

> Signed-off-by: Mark Brown <[email protected]>
> ---
>  drivers/leds/leds-wm8350.c |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> 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;
>         }
>
> --
> 1.7.10.4
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to