Skip to content
Snippets Groups Projects
Commit dd04a6b3 authored by Roel Kluin's avatar Roel Kluin Committed by Linus Torvalds
Browse files

drivers/video/da8xx-fb.c: fix error return


The return should be negative on errors

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b6b24c73
No related branches found
No related tags found
No related merge requests found
...@@ -704,7 +704,7 @@ static int __init fb_probe(struct platform_device *device) ...@@ -704,7 +704,7 @@ static int __init fb_probe(struct platform_device *device)
if (i == ARRAY_SIZE(known_lcd_panels)) { if (i == ARRAY_SIZE(known_lcd_panels)) {
dev_err(&device->dev, "GLCD: No valid panel found\n"); dev_err(&device->dev, "GLCD: No valid panel found\n");
ret = ENODEV; ret = -ENODEV;
goto err_clk_disable; goto err_clk_disable;
} else } else
dev_info(&device->dev, "GLCD: Found %s panel\n", dev_info(&device->dev, "GLCD: Found %s panel\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment