]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
[PATCH] m68k: Moved initialisation of conswitchp from subarches to global arch setup
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 12 Jan 2006 09:06:35 +0000 (01:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 17:09:05 +0000 (09:09 -0800)
Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/m68k/amiga/config.c
arch/m68k/apollo/config.c
arch/m68k/atari/config.c
arch/m68k/hp300/config.c
arch/m68k/kernel/setup.c
arch/m68k/mac/config.c
arch/m68k/q40/config.c
arch/m68k/sun3/config.c
arch/m68k/sun3x/config.c

index da24476db8e902af578a5d6b7a3441ce61108193..8eadde9d2a8f7fb43c54b519dc801363582c7edf 100644 (file)
@@ -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
index 264929471253b371a86aa5eb36877b64159cb55c..d401962d9b251e53dcef279d5045473056d6f995 100644 (file)
@@ -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
index 9261d2deeaf5b7629f83f63a857f66fb55fe6d53..f6d266b5cc76f6fb4b452acde6b74e73a0d4e02f 100644 (file)
@@ -246,9 +246,6 @@ void __init config_atari(void)
     mach_reset           = atari_reset;
 #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)
index a0b854f3f94add74e7c73d5dd569d4b0c9c8bb77..6d129eef370f1df8d5dab71c8127384c93ad3b16 100644 (file)
@@ -260,9 +260,6 @@ void __init config_hp300(void)
        mach_reset           = hp300_reset;
 #ifdef CONFIG_HEARTBEAT
        mach_heartbeat       = hp300_pulse;
-#endif
-#ifdef CONFIG_DUMMY_CONSOLE
-       conswitchp           = &dummy_con;
 #endif
        mach_max_dma_address = 0xffffffff;
 
index c4d4d05239326723da84cee9fea8331eb86b0db5..583526fa59c78f1ae195aa71d49768ebcd29eda5 100644 (file)
@@ -282,6 +282,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:
index cd19cbb213e811d33f3ee3981f59295ed35b4f4a..14f8d3f4e195f2424fbf18530d29070a10fd534f 100644 (file)
@@ -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;
index 02b626bae4ae9028dcd32029bec9ab9c615cea22..67e88a4efac0706db5176ccf5e8f5e0cb271e8c6 100644 (file)
@@ -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();
index 77d05bcc32214bb7f9fe979cbc88249324a75063..f1ca0dfbaa67f928b55ad62ea38d217b4a0ff982 100644 (file)
@@ -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
index 0ef547f5494d85d732e99d61e764a5200cccb721..0920f5d33606d972fe349308dc76cefd93711195 100644 (file)
@@ -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... */