Commit:     28822f22e18fc3c422f64b5bf0bb1e6c306af634
Parent:     cfe36bde59bc1ae868e775ad82386c3acaabb738
Author:     Stanislav Brabec <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 14 16:58:55 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Nov 14 18:45:38 2007 -0800

    drivers/video/s1d13xxxfb.c: fix build as module with dbg
    Attached patch fixes two compilation problems of s1d13xxxfb.c:
    - Fixes outdated dbg() message to fix compilation error with debugging 
    - Do not read kernel command line options when compiled as module.
    Signed-off-by: Stanislav Brabec <[EMAIL PROTECTED]>
    Cc: "Antonino A. Daplas" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/video/s1d13xxxfb.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c
index a5333c1..b829dc7 100644
--- a/drivers/video/s1d13xxxfb.c
+++ b/drivers/video/s1d13xxxfb.c
@@ -540,7 +540,7 @@ s1d13xxxfb_probe(struct platform_device *pdev)
        int ret = 0;
        u8 revision;
-       dbg("probe called: device is %p\n", dev);
+       dbg("probe called: device is %p\n", pdev);
        printk(KERN_INFO "Epson S1D13XXX FB Driver\n");
@@ -753,8 +753,11 @@ static struct platform_driver s1d13xxxfb_driver = {
 static int __init
+#ifndef MODULE
        if (fb_get_options("s1d13xxxfb", NULL))
                return -ENODEV;
        return platform_driver_register(&s1d13xxxfb_driver);
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

Reply via email to