]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250
authorKumar Gala <galak@gate.crashing.org>
Wed, 21 Dec 2005 15:27:13 +0000 (09:27 -0600)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:34:31 +0000 (15:34 +1100)
In setup_arch and setup_system call find_legacy_serial_ports() if we
build in support for 8250 serial ports instead of basing it on PPC_MULTIPLATFORM.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c

index 5bdc5faac71386345cec7b19129f37692a2c7ce2..a852b379d9eb9c75a94d26f54ebb3bbbaa5f4f66 100644 (file)
@@ -56,8 +56,7 @@ obj-$(CONFIG_BOOTX_TEXT)      += btext.o
 obj-$(CONFIG_6xx)              += idle_6xx.o
 obj-$(CONFIG_SMP)              += smp.o
 obj-$(CONFIG_KPROBES)          += kprobes.o
-obj-$(CONFIG_PPC_MULTIPLATFORM) += legacy_serial.o
-obj-$(CONFIG_PPC_MULTIPLATFORM) += udbg_16550.o
+obj-$(CONFIG_SERIAL_8250)      += legacy_serial.o udbg_16550.o
 module-$(CONFIG_PPC64)         += module_64.o
 obj-$(CONFIG_MODULES)          += $(module-y)
 
index 79d434fc14d2bcc2ff6e8c949b66e8e8dd34249c..e5d285adb49687534680d6797e7fd43f4c125f6d 100644 (file)
@@ -299,7 +299,7 @@ void __init setup_arch(char **cmdline_p)
        if (ppc_md.init_early)
                ppc_md.init_early();
 
-#ifdef CONFIG_PPC_MULTIPLATFORM
+#ifdef CONFIG_SERIAL_8250
        find_legacy_serial_ports();
 #endif
        finish_device_tree();
index 419e0b974b9623c19992659f5f8e1a8e20274007..98e9f0595dd8096a1935867203ee87487379eaf1 100644 (file)
@@ -472,7 +472,7 @@ void __init setup_system(void)
         * hash table management for us, thus ioremap works. We do that early
         * so that further code can be debugged
         */
-#ifdef CONFIG_PPC_MULTIPLATFORM
+#ifdef CONFIG_SERIAL_8250
        find_legacy_serial_ports();
 #endif