* [PATCH] video: Fix error return
@ 2009-11-11 22:21 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-11-11 22:21 UTC (permalink / raw)
To: sudhakar.raj, linux-fbdev-devel, Andrew Morton, LKML
The return should be negative on errors
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
drivers/video/da8xx-fb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index d065894..035d568 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",
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-11 22:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11 22:21 [PATCH] video: Fix error return Roel Kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.