Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0187f221e96e3436d552c0c7143f183eb82fb658
Commit:     0187f221e96e3436d552c0c7143f183eb82fb658
Parent:     008983d9669b80ac628b6b09ce4d78e75844b294
Author:     Ben Dooks <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 16 01:28:42 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 08:14:01 2007 -0800

    [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 <[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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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");
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to