From: Roel Kluin Date: Tue, 17 Nov 2009 22:06:15 +0000 (-0800) Subject: drivers/video/da8xx-fb.c: fix error return X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd04a6b32be5d4f2b8cfccd0a8369c5416d39d68;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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",