diff options
author | Paul Mackerras <paulus@samba.org> | 2006-01-10 00:19:05 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 00:19:05 -0500 |
commit | 13b8a272297b29870d5bf5f8db7a381dd9e82382 (patch) | |
tree | 7abd516728d53f2d096d757412d6e9cd17819382 /arch/powerpc/kernel | |
parent | 0f17574a651884c721e1a33051719e59deb13c18 (diff) |
powerpc: Introduce a new config symbol to control 16550 early debug code
The previous change by Kumar Gala in this area led to legacy_serial.c
and udbg_16550.c being built as modules when CONFIG_SERIAL_8250=m.
Fix this by introducing a new symbol, CONFIG_PPC_UDBG_16550, to
control whether these files get built, and arrange for it to be selected
for those platforms that need it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 6e03b595b6c8..0faf95c93ef8 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -55,7 +55,7 @@ obj-$(CONFIG_BOOTX_TEXT) += btext.o | |||
55 | obj-$(CONFIG_6xx) += idle_6xx.o | 55 | obj-$(CONFIG_6xx) += idle_6xx.o |
56 | obj-$(CONFIG_SMP) += smp.o | 56 | obj-$(CONFIG_SMP) += smp.o |
57 | obj-$(CONFIG_KPROBES) += kprobes.o | 57 | obj-$(CONFIG_KPROBES) += kprobes.o |
58 | obj-$(CONFIG_SERIAL_8250) += legacy_serial.o udbg_16550.o | 58 | obj-$(CONFIG_PPC_UDBG_16550) += legacy_serial.o udbg_16550.o |
59 | module-$(CONFIG_PPC64) += module_64.o | 59 | module-$(CONFIG_PPC64) += module_64.o |
60 | obj-$(CONFIG_MODULES) += $(module-y) | 60 | obj-$(CONFIG_MODULES) += $(module-y) |
61 | 61 | ||
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index e5d285adb496..db72a92943bf 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -299,9 +299,7 @@ void __init setup_arch(char **cmdline_p) | |||
299 | if (ppc_md.init_early) | 299 | if (ppc_md.init_early) |
300 | ppc_md.init_early(); | 300 | ppc_md.init_early(); |
301 | 301 | ||
302 | #ifdef CONFIG_SERIAL_8250 | ||
303 | find_legacy_serial_ports(); | 302 | find_legacy_serial_ports(); |
304 | #endif | ||
305 | finish_device_tree(); | 303 | finish_device_tree(); |
306 | 304 | ||
307 | smp_setup_cpu_maps(); | 305 | smp_setup_cpu_maps(); |
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 81567e931260..c4b76961d6de 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -472,9 +472,7 @@ void __init setup_system(void) | |||
472 | * hash table management for us, thus ioremap works. We do that early | 472 | * hash table management for us, thus ioremap works. We do that early |
473 | * so that further code can be debugged | 473 | * so that further code can be debugged |
474 | */ | 474 | */ |
475 | #ifdef CONFIG_SERIAL_8250 | ||
476 | find_legacy_serial_ports(); | 475 | find_legacy_serial_ports(); |
477 | #endif | ||
478 | 476 | ||
479 | /* | 477 | /* |
480 | * "Finish" the device-tree, that is do the actual parsing of | 478 | * "Finish" the device-tree, that is do the actual parsing of |