summaryrefslogtreecommitdiff
path: root/drivers/staging/sm7xxfb/sm7xxfb.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-07-07 13:44:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-14 20:05:32 -0700
commiteb90d44de7e6c7498a21e8de2935123395bbc31b (patch)
tree8943f2147bebb0cb32b77f970a04094a2dd38249 /drivers/staging/sm7xxfb/sm7xxfb.c
parent4a012d30508ed09063e35eeee95e34ecc8534716 (diff)
staging: sm7xxfb: use kernel commandline
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>
Diffstat (limited to 'drivers/staging/sm7xxfb/sm7xxfb.c')
-rw-r--r--drivers/staging/sm7xxfb/sm7xxfb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c
index 8fb62af8f97d..4dc9d5f32517 100644
--- a/drivers/staging/sm7xxfb/sm7xxfb.c
+++ b/drivers/staging/sm7xxfb/sm7xxfb.c
@@ -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);