summaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c2410fb.c
diff options
context:
space:
mode:
authorBen Dooks <ben@fluff.org.uk>2007-02-16 01:28:42 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-16 08:14:01 -0800
commit0187f221e96e3436d552c0c7143f183eb82fb658 (patch)
tree72f50692961fe3a704359aabd3d25d4bd196d596 /drivers/video/s3c2410fb.c
parent008983d9669b80ac628b6b09ce4d78e75844b294 (diff)
downloadop-kernel-dev-0187f221e96e3436d552c0c7143f183eb82fb658.zip
op-kernel-dev-0187f221e96e3436d552c0c7143f183eb82fb658.tar.gz
[PATCH] s3c2410fb: fix un-initialised dev field
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>
Diffstat (limited to 'drivers/video/s3c2410fb.c')
-rw-r--r--drivers/video/s3c2410fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c
index ccef56d..ed34260 100644
--- 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");
OpenPOWER on IntegriCloud