Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb90d44d authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman
Browse files

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: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a012d30
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);