From: Roel Kluin Date: Tue, 17 Nov 2009 22:06:15 +0000 (-0800) Subject: drivers/video/da8xx-fb.c: fix error return X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~9335 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=dd04a6b32be5d4f2b8cfccd0a8369c5416d39d68;p=mirror_ubuntu-zesty-kernel.git drivers/video/da8xx-fb.c: fix error return The return should be negative on errors Signed-off-by: Roel Kluin Cc: Sudhakar Rajashekhara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index d065894ce38f..035d56835b75 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -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",