Commit 79e7bac0 authored by Kumar Gala's avatar Kumar Gala Committed by Paul Mackerras

[PATCH] powerpc: Call find_legacy_serial_ports() if we enable CONFIG_SERIAL_8250

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: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent be6b8439
...@@ -56,8 +56,7 @@ obj-$(CONFIG_BOOTX_TEXT) += btext.o ...@@ -56,8 +56,7 @@ obj-$(CONFIG_BOOTX_TEXT) += btext.o
obj-$(CONFIG_6xx) += idle_6xx.o obj-$(CONFIG_6xx) += idle_6xx.o
obj-$(CONFIG_SMP) += smp.o obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_KPROBES) += kprobes.o obj-$(CONFIG_KPROBES) += kprobes.o
obj-$(CONFIG_PPC_MULTIPLATFORM) += legacy_serial.o obj-$(CONFIG_SERIAL_8250) += legacy_serial.o udbg_16550.o
obj-$(CONFIG_PPC_MULTIPLATFORM) += udbg_16550.o
module-$(CONFIG_PPC64) += module_64.o module-$(CONFIG_PPC64) += module_64.o
obj-$(CONFIG_MODULES) += $(module-y) obj-$(CONFIG_MODULES) += $(module-y)
......
...@@ -299,7 +299,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -299,7 +299,7 @@ void __init setup_arch(char **cmdline_p)
if (ppc_md.init_early) if (ppc_md.init_early)
ppc_md.init_early(); ppc_md.init_early();
#ifdef CONFIG_PPC_MULTIPLATFORM #ifdef CONFIG_SERIAL_8250
find_legacy_serial_ports(); find_legacy_serial_ports();
#endif #endif
finish_device_tree(); finish_device_tree();
......
...@@ -472,7 +472,7 @@ void __init setup_system(void) ...@@ -472,7 +472,7 @@ void __init setup_system(void)
* hash table management for us, thus ioremap works. We do that early * hash table management for us, thus ioremap works. We do that early
* so that further code can be debugged * so that further code can be debugged
*/ */
#ifdef CONFIG_PPC_MULTIPLATFORM #ifdef CONFIG_SERIAL_8250
find_legacy_serial_ports(); find_legacy_serial_ports();
#endif #endif
......
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