OSDN Git Service

arch/powerpc/setup: Drop dummy_con initialization
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 18 Dec 2019 21:44:59 +0000 (16:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:29:17 +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-18-nivedita@alum.mit.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup-common.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/maple/setup.c
arch/powerpc/platforms/pasemi/setup.c
arch/powerpc/platforms/ps3/setup.c

index 488f1ee..7f8c890 100644 (file)
@@ -949,9 +949,6 @@ void __init setup_arch(char **cmdline_p)
 
        early_memtest(min_low_pfn << PAGE_SHIFT, max_low_pfn << PAGE_SHIFT);
 
-       if (IS_ENABLED(CONFIG_DUMMY_CONSOLE))
-               conswitchp = &dummy_con;
-
        if (ppc_md.setup_arch)
                ppc_md.setup_arch();
 
index 9680d76..855eedb 100644 (file)
@@ -240,9 +240,6 @@ static void __init cell_setup_arch(void)
        init_pci_config_tokens();
 
        cbe_pervasive_init();
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
 
        mmio_nvram_init();
 }
index 9cd6f3e..47f7310 100644 (file)
@@ -183,9 +183,6 @@ static void __init maple_setup_arch(void)
        /* Lookup PCI hosts */
                maple_pci_init();
 
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
        maple_use_rtas_reboot_and_halt_if_present();
 
        printk(KERN_DEBUG "Using native/NAP idle loop\n");
index 05a52f1..b612474 100644 (file)
@@ -147,10 +147,6 @@ static void __init pas_setup_arch(void)
        /* Lookup PCI hosts */
        pas_pci_init();
 
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
-
        /* Remap SDC register for doing reset */
        /* XXXOJN This should maybe come out of the device tree */
        reset_reg = ioremap(0xfc101100, 4);
index 8108b9b..b293689 100644 (file)
@@ -200,10 +200,6 @@ static void __init ps3_setup_arch(void)
        smp_init_ps3();
 #endif
 
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp = &dummy_con;
-#endif
-
        prealloc_ps3fb_videomemory();
        prealloc_ps3flash_bounce_buffer();