diff options
author | Ben Dooks <ben@fluff.org.uk> | 2007-02-16 01:28:42 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-16 08:14:01 -0800 |
commit | 0187f221e96e3436d552c0c7143f183eb82fb658 (patch) | |
tree | 72f50692961fe3a704359aabd3d25d4bd196d596 /drivers/video | |
parent | 008983d9669b80ac628b6b09ce4d78e75844b294 (diff) | |
download | blackbird-op-linux-0187f221e96e3436d552c0c7143f183eb82fb658.tar.gz blackbird-op-linux-0187f221e96e3436d552c0c7143f183eb82fb658.zip |
[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')
-rw-r--r-- | drivers/video/s3c2410fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c index ccef56d0c157..ed3426062a8b 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"); |