projects/linux·commit 0187f221

[PATCH] s3c2410fb: fix un-initialised dev field

0187f221 · Ben Dooks <[email protected]> · 2007-02-16 01:28:42 -08:00

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]>
Commit
0187f221e96e3436d552c0c7143f183eb82fb658
Parents
008983d9

Changes

1 files changed · +2 −0

FileStatusAddDelContent
drivers/video/s3c2410fb.cmodified+2−0View file

drivers/video/s3c2410fb.c

View file
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");