summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/as3711_bl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/as3711_bl.c')
-rw-r--r--drivers/video/backlight/as3711_bl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/backlight/as3711_bl.c b/drivers/video/backlight/as3711_bl.c
index 28437c2da0..e6f66bb35e 100644
--- a/drivers/video/backlight/as3711_bl.c
+++ b/drivers/video/backlight/as3711_bl.c
@@ -383,10 +383,8 @@ static int as3711_backlight_probe(struct platform_device *pdev)
if (pdev->dev.parent->of_node) {
ret = as3711_backlight_parse_dt(&pdev->dev);
- if (ret < 0) {
- dev_err(&pdev->dev, "DT parsing failed: %d\n", ret);
- return ret;
- }
+ if (ret < 0)
+ return dev_err_probe(&pdev->dev, ret, "DT parsing failed\n");
}
if (!pdata->su1_fb && !pdata->su2_fb) {