Moved initialisation of conswitchp from subarches to global arch setup Signed-Off-By: Kars de Jong --- amiga/config.c | 3 --- apollo/config.c | 3 --- atari/config.c | 3 --- hp300/config.c | 3 --- kernel/setup.c | 4 ++++ mac/config.c | 3 --- q40/config.c | 3 --- sun3/config.c | 3 --- sun3x/config.c | 4 ---- 9 files changed, 4 insertions(+), 25 deletions(-) --- linux/arch/m68k/amiga/config.c 2004/04/05 13:09:00 1.22 +++ linux/arch/m68k/amiga/config.c 2005/10/11 19:00:47 1.23 @@ -431,9 +431,6 @@ void __init config_amiga(void) mach_floppy_setup = amiga_floppy_setup; #endif mach_reset = amiga_reset; -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE) mach_beep = amiga_mksound; #endif --- linux/arch/m68k/apollo/config.c 2004/04/05 13:09:01 1.14 +++ linux/arch/m68k/apollo/config.c 2005/10/11 19:00:47 1.15 @@ -176,9 +176,6 @@ void config_apollo(void) { mach_set_clock_mmss = dn_dummy_set_clock_mmss; /* */ mach_process_int = dn_process_int; mach_reset = dn_dummy_reset; /* */ -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif #ifdef CONFIG_HEARTBEAT mach_heartbeat = dn_heartbeat; #endif --- linux/arch/m68k/atari/config.c 2004/04/05 13:09:01 1.19 +++ linux/arch/m68k/atari/config.c 2005/10/11 19:00:47 1.20 @@ -247,9 +247,6 @@ void __init config_atari(void) #ifdef CONFIG_ATARI_FLOPPY mach_floppy_setup = atari_floppy_setup; #endif -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif mach_max_dma_address = 0xffffff; #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE) mach_beep = atari_mksound; --- linux/arch/m68k/hp300/config.c 2004/10/17 18:16:58 1.8 +++ linux/arch/m68k/hp300/config.c 2005/10/11 19:00:48 1.9 @@ -261,9 +261,6 @@ void __init config_hp300(void) #ifdef CONFIG_HEARTBEAT mach_heartbeat = hp300_pulse; #endif -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif mach_max_dma_address = 0xffffffff; if (hp300_model >= HP_330 && hp300_model <= HP_433S && hp300_model != HP_350) { --- linux/arch/m68k/kernel/setup.c 2004/10/10 14:56:43 1.27 +++ linux/arch/m68k/kernel/setup.c 2005/10/11 19:00:48 1.28 @@ -280,6 +280,10 @@ void __init setup_arch(char **cmdline_p) } } +#ifdef CONFIG_DUMMY_CONSOLE + conswitchp = &dummy_con; +#endif + switch (m68k_machtype) { #ifdef CONFIG_AMIGA case MACH_AMIGA: --- linux/arch/m68k/mac/config.c 2004/04/05 13:09:06 1.18 +++ linux/arch/m68k/mac/config.c 2005/10/11 19:00:48 1.19 @@ -212,9 +212,6 @@ void __init config_mac(void) mach_reset = mac_reset; mach_halt = mac_poweroff; mach_power_off = mac_poweroff; -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif mach_max_dma_address = 0xffffffff; #if 0 mach_debug_init = mac_debug_init; --- linux/arch/m68k/q40/config.c 2004/10/31 09:22:45 1.21 +++ linux/arch/m68k/q40/config.c 2005/10/11 19:00:49 1.22 @@ -194,9 +194,6 @@ void __init config_q40(void) mach_heartbeat = q40_heartbeat; #endif mach_halt = q40_halt; -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif /* disable a few things that SMSQ might have left enabled */ q40_disable_irqs(); --- linux/arch/m68k/sun3/config.c 2004/04/05 13:09:07 1.16 +++ linux/arch/m68k/sun3/config.c 2005/10/11 19:00:49 1.17 @@ -160,9 +160,6 @@ void __init config_sun3(void) mach_hwclk = sun3_hwclk; mach_halt = sun3_halt; mach_get_hardware_list = sun3_get_hardware_list; -#if defined(CONFIG_DUMMY_CONSOLE) - conswitchp = &dummy_con; -#endif memory_start = ((((int)&_end) + 0x2000) & ~0x1fff); // PROM seems to want the last couple of physical pages. --m --- linux/arch/m68k/sun3x/config.c 2004/10/17 18:16:59 1.8 +++ linux/arch/m68k/sun3x/config.c 2005/10/11 19:00:49 1.9 @@ -71,10 +71,6 @@ void __init config_sun3x(void) mach_get_model = sun3_get_model; mach_get_hardware_list = sun3x_get_hardware_list; -#ifdef CONFIG_DUMMY_CONSOLE - conswitchp = &dummy_con; -#endif - sun3_intreg = (unsigned char *)SUN3X_INTREG; /* only the serial console is known to work anyway... */