Skip to content

Commit

Permalink
drivers/video/da8xx-fb.c: fix error return
Browse files Browse the repository at this point in the history
The return should be negative on errors

Signed-off-by: Roel Kluin <[email protected]>
Cc: Sudhakar Rajashekhara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
RoelKluin authored and torvalds committed Nov 18, 2009
1 parent b6b24c7 commit dd04a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ static int __init fb_probe(struct platform_device *device)

if (i == ARRAY_SIZE(known_lcd_panels)) {
dev_err(&device->dev, "GLCD: No valid panel found\n");
ret = ENODEV;
ret = -ENODEV;
goto err_clk_disable;
} else
dev_info(&device->dev, "GLCD: Found %s panel\n",
Expand Down

0 comments on commit dd04a6b

Please sign in to comment.