diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 8346dfc01cf6..6338d0e2fe07 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c | |||
@@ -87,9 +87,9 @@ static int pwm_backlight_probe(struct platform_device *pdev) | |||
87 | pb->notify = data->notify; | 87 | pb->notify = data->notify; |
88 | 88 | ||
89 | pb->pwm = pwm_request(data->pwm_id, "backlight"); | 89 | pb->pwm = pwm_request(data->pwm_id, "backlight"); |
90 | if (pb->pwm == NULL) { | 90 | if (IS_ERR(pb->pwm)) { |
91 | dev_err(&pdev->dev, "unable to request PWM for backlight\n"); | 91 | dev_err(&pdev->dev, "unable to request PWM for backlight\n"); |
92 | ret = -EBUSY; | 92 | ret = PTR_ERR(pb->pwm); |
93 | goto err_pwm; | 93 | goto err_pwm; |
94 | } | 94 | } |
95 | 95 | ||