]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: sm7xxfb: use kernel commandline
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 7 Jul 2015 08:14:35 +0000 (13:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 03:05:32 +0000 (20:05 -0700)
We were only using the kernel commandline to set the mode if this driver
is builtin, but when it is built as a module we were not having any way
to set the mode. Start using commandline even if it is built as a
module.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c

index 8fb62af8f97de97d2cf63ae2bf4f102aa649dfaf..4dc9d5f32517376ffa1ee2e7560e93bda57b8750 100644 (file)
@@ -1660,14 +1660,12 @@ static struct pci_driver smtcfb_driver = {
 
 static int __init sm712fb_init(void)
 {
-#ifndef MODULE
        char *option = NULL;
 
        if (fb_get_options("sm712fb", &option))
                return -ENODEV;
        if (option && *option)
                mode_option = option;
-#endif
        sm7xx_vga_setup(mode_option);
 
        return pci_register_driver(&smtcfb_driver);