From: Ben Dooks Date: Fri, 16 Feb 2007 09:28:42 +0000 (-0800) Subject: [PATCH] s3c2410fb: fix un-initialised dev field X-Git-Tag: v2.6.21-rc1~96 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=0187f221e96e3436d552c0c7143f183eb82fb658;p=powerpc.git [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 Cc: James Simmons Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index ccef56d0c1..ed3426062a 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");