[MIPS] Add missing ifdef arch/mips/pmc-sierra/yosemite/setup.c
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 4 Feb 2007 04:16:51 +0000 (23:16 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 6 Feb 2007 16:53:18 +0000 (16:53 +0000)
early_serial_setup is only defined when CONFIG_SERIAL_8250 is set.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pmc-sierra/yosemite/setup.c

index 1b9b0d396d3ed3e588bac9661fbb01316e21263d..6a6e15e400095cd0c3c42a920f1f64960f51d147 100644 (file)
@@ -171,6 +171,7 @@ static void __init py_map_ocd(void)
 
 static void __init py_uart_setup(void)
 {
+#ifdef CONFIG_SERIAL_8250
        struct uart_port up;
 
        /*
@@ -188,6 +189,7 @@ static void __init py_uart_setup(void)
 
        if (early_serial_setup(&up))
                printk(KERN_ERR "Early serial init of port 0 failed\n");
+#endif /* CONFIG_SERIAL_8250 */
 }
 
 static void __init py_rtc_setup(void)