diff options
-rw-r--r-- | drivers/video/backlight/aat2870_bl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/aat2870_bl.c b/drivers/video/backlight/aat2870_bl.c index 4952a617563d..f13a3f7e2e8f 100644 --- a/drivers/video/backlight/aat2870_bl.c +++ b/drivers/video/backlight/aat2870_bl.c | |||
@@ -158,10 +158,10 @@ static int aat2870_bl_probe(struct platform_device *pdev) | |||
158 | props.type = BACKLIGHT_RAW; | 158 | props.type = BACKLIGHT_RAW; |
159 | bd = backlight_device_register("aat2870-backlight", &pdev->dev, | 159 | bd = backlight_device_register("aat2870-backlight", &pdev->dev, |
160 | aat2870_bl, &aat2870_bl_ops, &props); | 160 | aat2870_bl, &aat2870_bl_ops, &props); |
161 | if (!bd) { | 161 | if (IS_ERR(bd)) { |
162 | dev_err(&pdev->dev, | 162 | dev_err(&pdev->dev, |
163 | "Failed allocate memory for backlight device\n"); | 163 | "Failed allocate memory for backlight device\n"); |
164 | ret = -ENOMEM; | 164 | ret = PTR_ERR(bd); |
165 | goto out_kfree; | 165 | goto out_kfree; |
166 | } | 166 | } |
167 | 167 | ||