Skip to contentSkip to conversation

s3c2410fb: fix un-initialised dev field

PATCH New Ben Dooks 1 participant 1 message Feb 15, 2007

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 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.

drivers/video/s3c2410fb.c +2 -0
@@ -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");