]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging : xgifb: Removes compilation conditionals
authorJavier Martinez Canillas <martinez.javier@gmail.com>
Wed, 8 Sep 2010 04:07:57 +0000 (00:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 8 Sep 2010 09:07:12 +0000 (02:07 -0700)
This patch fixes a compilation warning in today linux-next
removing some compilation conditionals.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main_26.c

index bd863a0b881d66703a19ac50ba788732ec6fbcf9..dc608ed5a6cfbc2f8e88657065aa45017fc448bb 100644 (file)
@@ -2797,7 +2797,6 @@ static void XGIfb_post_setmode(void)
 
 }
 
-#ifndef MODULE
 XGIINITSTATIC int __init XGIfb_setup(char *options)
 {
        char *this_opt;
@@ -2880,7 +2879,6 @@ XGIINITSTATIC int __init XGIfb_setup(char *options)
        printk("\nxgifb: outa xgifb_setup 3450");
        return 0;
 }
-#endif
 
 static unsigned char VBIOS_BUF[65535];
 
@@ -3461,13 +3459,12 @@ static struct pci_driver xgifb_driver = {
 
 XGIINITSTATIC int __init xgifb_init(void)
 {
-#ifndef MODULE
        char *option = NULL;
 
        if (fb_get_options("xgifb", &option))
                return -ENODEV;
        XGIfb_setup(option);
-#endif
+
        return pci_register_driver(&xgifb_driver);
 }