arch/m68k/setup: Drop dummy_con initialization
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 18 Dec 2019 21:44:52 +0000 (16:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:29:16 +0000 (15:29 +0100)
con_init in tty/vt.c will now set conswitchp to dummy_con if it's unset.
Drop it from arch setup code.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20191218214506.49252-11-nivedita@alum.mit.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/m68k/kernel/setup_mm.c
arch/m68k/kernel/setup_no.c
arch/m68k/sun3x/config.c

index 528484feff80017e88582615a608edd8c2c65e12..ab8aa7be260f36abc7436dcc6dbf92d905cf043f 100644 (file)
@@ -274,10 +274,6 @@ void __init setup_arch(char **cmdline_p)
 
        parse_early_param();
 
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
-
        switch (m68k_machtype) {
 #ifdef CONFIG_AMIGA
        case MACH_AMIGA:
index 3c5def10d486e0a563d9034fefc93785c037c203..a63483de7a4221f96001f3dd055ec8291c29608a 100644 (file)
@@ -146,10 +146,6 @@ void __init setup_arch(char **cmdline_p)
        memcpy(boot_command_line, command_line, COMMAND_LINE_SIZE);
        boot_command_line[COMMAND_LINE_SIZE-1] = 0;
 
-#if defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_DUMMY_CONSOLE)
-       conswitchp = &dummy_con;
-#endif
-
        /*
         * Give all the memory to the bootmap allocator, tell it to put the
         * boot mem_map at the start of memory.
index 03ce7f9facfe57d0b68b0530b0bf0cabfe82e977..d806dee71a9ca569dbe284cfd3164d24a878799d 100644 (file)
@@ -70,7 +70,6 @@ void __init config_sun3x(void)
                break;
        default:
                serial_console = 0;
-               conswitchp = &dummy_con;
                break;
        }
 #endif