Message ID | 20220926142750.2298337-1-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | [-next,resend] backlight: pwm_bl: Switch to use dev_err_probe() helper | expand |
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index c0523a0269ee..ae858e3bd38f 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -513,9 +513,8 @@ static int pwm_backlight_probe(struct platform_device *pdev) } if (IS_ERR(pb->pwm)) { - ret = PTR_ERR(pb->pwm); - if (ret != -EPROBE_DEFER) - dev_err(&pdev->dev, "unable to request PWM\n"); + ret = dev_err_probe(&pdev->dev, PTR_ERR(pb->pwm), + "unable to request PWM\n"); goto err_alloc; }