Commit 0c79358b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] m68k: Moved initialisation of conswitchp from subarches to global arch setup

Signed-off-by: default avatarKars de Jong <jongk@linux-m68k.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35efbcab
...@@ -431,9 +431,6 @@ void __init config_amiga(void) ...@@ -431,9 +431,6 @@ void __init config_amiga(void)
mach_floppy_setup = amiga_floppy_setup; mach_floppy_setup = amiga_floppy_setup;
#endif #endif
mach_reset = amiga_reset; mach_reset = amiga_reset;
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
#if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE) #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE)
mach_beep = amiga_mksound; mach_beep = amiga_mksound;
#endif #endif
......
...@@ -176,9 +176,6 @@ void config_apollo(void) { ...@@ -176,9 +176,6 @@ void config_apollo(void) {
mach_set_clock_mmss = dn_dummy_set_clock_mmss; /* */ mach_set_clock_mmss = dn_dummy_set_clock_mmss; /* */
mach_process_int = dn_process_int; mach_process_int = dn_process_int;
mach_reset = dn_dummy_reset; /* */ mach_reset = dn_dummy_reset; /* */
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
#ifdef CONFIG_HEARTBEAT #ifdef CONFIG_HEARTBEAT
mach_heartbeat = dn_heartbeat; mach_heartbeat = dn_heartbeat;
#endif #endif
......
...@@ -246,9 +246,6 @@ void __init config_atari(void) ...@@ -246,9 +246,6 @@ void __init config_atari(void)
mach_reset = atari_reset; mach_reset = atari_reset;
#ifdef CONFIG_ATARI_FLOPPY #ifdef CONFIG_ATARI_FLOPPY
mach_floppy_setup = atari_floppy_setup; mach_floppy_setup = atari_floppy_setup;
#endif
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif #endif
mach_max_dma_address = 0xffffff; mach_max_dma_address = 0xffffff;
#if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE) #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE)
......
...@@ -260,9 +260,6 @@ void __init config_hp300(void) ...@@ -260,9 +260,6 @@ void __init config_hp300(void)
mach_reset = hp300_reset; mach_reset = hp300_reset;
#ifdef CONFIG_HEARTBEAT #ifdef CONFIG_HEARTBEAT
mach_heartbeat = hp300_pulse; mach_heartbeat = hp300_pulse;
#endif
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif #endif
mach_max_dma_address = 0xffffffff; mach_max_dma_address = 0xffffffff;
......
...@@ -282,6 +282,10 @@ void __init setup_arch(char **cmdline_p) ...@@ -282,6 +282,10 @@ void __init setup_arch(char **cmdline_p)
} }
} }
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
switch (m68k_machtype) { switch (m68k_machtype) {
#ifdef CONFIG_AMIGA #ifdef CONFIG_AMIGA
case MACH_AMIGA: case MACH_AMIGA:
......
...@@ -212,9 +212,6 @@ void __init config_mac(void) ...@@ -212,9 +212,6 @@ void __init config_mac(void)
mach_reset = mac_reset; mach_reset = mac_reset;
mach_halt = mac_poweroff; mach_halt = mac_poweroff;
mach_power_off = mac_poweroff; mach_power_off = mac_poweroff;
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
mach_max_dma_address = 0xffffffff; mach_max_dma_address = 0xffffffff;
#if 0 #if 0
mach_debug_init = mac_debug_init; mach_debug_init = mac_debug_init;
......
...@@ -194,9 +194,6 @@ void __init config_q40(void) ...@@ -194,9 +194,6 @@ void __init config_q40(void)
mach_heartbeat = q40_heartbeat; mach_heartbeat = q40_heartbeat;
#endif #endif
mach_halt = q40_halt; mach_halt = q40_halt;
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
/* disable a few things that SMSQ might have left enabled */ /* disable a few things that SMSQ might have left enabled */
q40_disable_irqs(); q40_disable_irqs();
......
...@@ -160,9 +160,6 @@ void __init config_sun3(void) ...@@ -160,9 +160,6 @@ void __init config_sun3(void)
mach_hwclk = sun3_hwclk; mach_hwclk = sun3_hwclk;
mach_halt = sun3_halt; mach_halt = sun3_halt;
mach_get_hardware_list = sun3_get_hardware_list; mach_get_hardware_list = sun3_get_hardware_list;
#if defined(CONFIG_DUMMY_CONSOLE)
conswitchp = &dummy_con;
#endif
memory_start = ((((int)&_end) + 0x2000) & ~0x1fff); memory_start = ((((int)&_end) + 0x2000) & ~0x1fff);
// PROM seems to want the last couple of physical pages. --m // PROM seems to want the last couple of physical pages. --m
......
...@@ -71,10 +71,6 @@ void __init config_sun3x(void) ...@@ -71,10 +71,6 @@ void __init config_sun3x(void)
mach_get_model = sun3_get_model; mach_get_model = sun3_get_model;
mach_get_hardware_list = sun3x_get_hardware_list; mach_get_hardware_list = sun3x_get_hardware_list;
#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
#endif
sun3_intreg = (unsigned char *)SUN3X_INTREG; sun3_intreg = (unsigned char *)SUN3X_INTREG;
/* only the serial console is known to work anyway... */ /* only the serial console is known to work anyway... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment