]> Git Repo - linux.git/commitdiff
[PATCH] s3c2410fb: fix un-initialised dev field
authorBen Dooks <[email protected]>
Fri, 16 Feb 2007 09:28:42 +0000 (01:28 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: James Simmons <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/s3c2410fb.c

index ccef56d0c15794fced4c4c71b93a2ce21288f0a3..ed3426062a8b5c136784b988f7abaa2c52c043b7 100644 (file)
@@ -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");
This page took 0.050468 seconds and 4 git commands to generate.