[PATCH] backlight: pwm_bl: Do not make the regulator mandatory

Fabio Estevam festevam at gmail.com
Mon Nov 25 15:37:42 EST 2013


On Mon, Nov 25, 2013 at 3:29 PM, Mark Brown <broonie at kernel.org> wrote:
> On Mon, Nov 25, 2013 at 12:43:58PM -0200, Fabio Estevam wrote:
>
>> What commit provides this regulator core functionality?
>
> regulator: core: Provide a dummy regulator with full constraints
>
>> Looks like it has not reached 3.13-rc1.
>
> Yes, it did.

Ok, I see.

Another way to have LCD working is on a 3.13-rc1 (without passing the
fake regulator node in dt):

--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -284,7 +284,7 @@ static int pwm_backlight_probe(struct platform_device *pdev)

        pb->power_supply = devm_regulator_get(&pdev->dev, "power");
        if (IS_ERR(pb->power_supply)) {
-               ret = PTR_ERR(pb->power_supply);
+               ret = -EPROBE_DEFER;
                goto err_gpio;
        }

At least mx28evk and mx6qsabresd have no LCD output in 3.13-rc1.

Not sure what is the proper fix though.

Regards,

Fabio Estevam



More information about the linux-arm-kernel mailing list