Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-12 23:47:51 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-12 23:47:51 -0800
commit79648638938b38a938dfaa40e618e9d3a4f270ca (patch)
treec8cb5de6aba2a0d869cd0e6ba92023cfa9a0d21d
parent0ee5a7d5d8313851d74d2e5c7655b0feda4c1891 (diff)
[PATCH] ppc32: Fix compilation of IBM Spruce & !CONFIG_SERIAL_TEXT_DEBUG
From: Tom Rini <trini@kernel.crashing.org> From: Randy Vinson <rvinson@mvista.com> - Fix compilation of IBM Spruce when CONFIG_SERIAL_TEXT_DEBUG=n
-rw-r--r--arch/ppc/platforms/spruce_setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/ppc/platforms/spruce_setup.c b/arch/ppc/platforms/spruce_setup.c
index e5c174ef601a..9659e7588502 100644
--- a/arch/ppc/platforms/spruce_setup.c
+++ b/arch/ppc/platforms/spruce_setup.c
@@ -127,8 +127,9 @@ spruce_early_serial_map(void)
serial_req.membase = (u_char *)UART0_IO_BASE;
serial_req.regshift = 0;
+#if defined(CONFIG_KGDB) || defined(CONFIG_SERIAL_TEXT_DEBUG)
gen550_init(0, &serial_req);
-
+#endif
#ifdef CONFIG_SERIAL_8250
if (early_serial_setup(&serial_req) != 0)
printk("Early serial init of port 0 failed\n");
@@ -139,8 +140,9 @@ spruce_early_serial_map(void)
serial_req.irq = UART1_INT;
serial_req.membase = (u_char *)UART1_IO_BASE;
+#if defined(CONFIG_KGDB) || defined(CONFIG_SERIAL_TEXT_DEBUG)
gen550_init(1, &serial_req);
-
+#endif
#ifdef CONFIG_SERIAL_8250
if (early_serial_setup(&serial_req) != 0)
printk("Early serial init of port 1 failed\n");