]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc32: Fix compilation of IBM Spruce & !CONFIG_SERIAL_TEXT_DEBUG
authorAndrew Morton <akpm@osdl.org>
Fri, 13 Feb 2004 07:47:51 +0000 (23:47 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 13 Feb 2004 07:47:51 +0000 (23:47 -0800)
From: Tom Rini <trini@kernel.crashing.org>

From: Randy Vinson <rvinson@mvista.com>

- Fix compilation of IBM Spruce when CONFIG_SERIAL_TEXT_DEBUG=n

arch/ppc/platforms/spruce_setup.c

index e5c174ef601a61def0fe055915e7b6a3fd42f157..9659e75885029453c7976ad8f15ecc8eb3ba29b1 100644 (file)
@@ -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");