* [PATCH] s3c2410fb: fix un-initialised dev field
@ 2007-02-15 22:49 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2007-02-15 22:49 UTC (permalink / raw)
To: openmoko-kernel, linux-fbdev-devel; +Cc: linux-kernel
The current driver is not setting the dev
field in the private data structure, which
can lead to an OOPS if the driver tries to
report an error.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
--- linux-2.6.20/drivers/video/s3c2410fb.c 2007-02-04 18:44:54.000000000 +0000
+++ linux-2.6.20-fbfix1/drivers/video/s3c2410fb.c 2007-02-15 22:42:51.000000000 +0000
@@ -791,6 +791,8 @@ static int __init s3c2410fb_probe(struct
info = fbinfo->par;
info->fb = fbinfo;
+ info->dev = &pdev->dev;
+
platform_set_drvdata(pdev, fbinfo);
dprintk("devinit\n");
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-15 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 22:49 [PATCH] s3c2410fb: fix un-initialised dev field Ben Dooks
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.