Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b309c050cd8a705229085bff790ad532b3cdf819
Commit:     b309c050cd8a705229085bff790ad532b3cdf819
Parent:     a58d67ce7d648f3a2512d6d044b5eab0c6f71253
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 04:05:46 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 17 10:23:13 2007 -0700

    pm3fb: possible cleanups
    
    - remove the empty pm3fb_setup() and corresponding code
    
    - pm3fb_init() can become static
    
    [adaplas]
    - retain call to fb_get_options() for global options
    
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
    Signed-off-by: Antonino Daplas <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/video/pm3fb.c |   29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c
index a9b841c..5b3f54c 100644
--- a/drivers/video/pm3fb.c
+++ b/drivers/video/pm3fb.c
@@ -612,8 +612,6 @@ static void pm3fb_write_mode(struct fb_info *info)
 /*
  * hardware independent functions
  */
-int pm3fb_init(void);
-
 static int pm3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
 {
        u32 lpitch;
@@ -1170,35 +1168,12 @@ static struct pci_driver pm3fb_driver = {
 
 MODULE_DEVICE_TABLE(pci, pm3fb_id_table);
 
-#ifndef MODULE
-       /*
-        *  Setup
-        */
-
-/*
- * Only necessary if your driver takes special options,
- * otherwise we fall back on the generic fb_setup().
- */
-static int __init pm3fb_setup(char *options)
+static int __init pm3fb_init(void)
 {
-       /* Parse user speficied options (`video=pm3fb:') */
-       return 0;
-}
-#endif /* MODULE */
-
-int __init pm3fb_init(void)
-{
-       /*
-        *  For kernel boot options (in 'video=pm3fb:<options>' format)
-        */
 #ifndef MODULE
-       char *option = NULL;
-
-       if (fb_get_options("pm3fb", &option))
+       if (fb_get_options("pm3fb", NULL))
                return -ENODEV;
-       pm3fb_setup(option);
 #endif
-
        return pci_register_driver(&pm3fb_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  http://vger.kernel.org/majordomo-info.html

Reply via email to