pwm_apply_args() sole purpose is to initialize all parameters specified
in the device tree for consumers that rely on pwm_config() and
pwm_enable(). The mp3309c backlight driver uses pwm_apply_might_sleep()
which gets passed the full configuration and so doesn't rely on the
default being explicitly applied.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
 drivers/video/backlight/mp3309c.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/video/backlight/mp3309c.c 
b/drivers/video/backlight/mp3309c.c
index 372058e26129..bb4e85531cea 100644
--- a/drivers/video/backlight/mp3309c.c
+++ b/drivers/video/backlight/mp3309c.c
@@ -222,7 +222,6 @@ static int mp3309c_parse_fwnode(struct mp3309c_chip *chip,
                if (IS_ERR(chip->pwmd))
                        return dev_err_probe(dev, PTR_ERR(chip->pwmd), "error 
getting pwm data\n");
                pdata->dimming_mode = DIMMING_PWM;
-               pwm_apply_args(chip->pwmd);
        }
 
        /*
-- 
2.49.0

Reply via email to