projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
008983d
)
[PATCH] s3c2410fb: fix un-initialised dev field
author
Ben Dooks
<ben@fluff.org.uk>
Fri, 16 Feb 2007 09:28:42 +0000
(
01:28
-0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Fri, 16 Feb 2007 16:14:01 +0000
(08:14 -0800)
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>
Cc: James Simmons <jsimmons@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3c2410fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/s3c2410fb.c
b/drivers/video/s3c2410fb.c
index
ccef56d
..
ed34260
100644
(file)
--- a/
drivers/video/s3c2410fb.c
+++ b/
drivers/video/s3c2410fb.c
@@
-791,6
+791,8
@@
static int __init s3c2410fb_probe(struct platform_device *pdev)
info = fbinfo->par;
info->fb = fbinfo;
+ info->dev = &pdev->dev;
+
platform_set_drvdata(pdev, fbinfo);
dprintk("devinit\n");