diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2007-02-03 23:16:51 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 11:53:18 -0500 |
commit | 811d944901705b8c14b945ba51caff5e912bb9e3 (patch) | |
tree | a5974c35550f4c722e5f99f7304beac7b7119ff2 /arch/mips | |
parent | 19487f1e8a288da0d84b48d086167cf328080938 (diff) |
[MIPS] Add missing ifdef arch/mips/pmc-sierra/yosemite/setup.c
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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/pmc-sierra/yosemite/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/pmc-sierra/yosemite/setup.c b/arch/mips/pmc-sierra/yosemite/setup.c index 1b9b0d396d3e..6a6e15e40009 100644 --- a/arch/mips/pmc-sierra/yosemite/setup.c +++ b/arch/mips/pmc-sierra/yosemite/setup.c | |||
@@ -171,6 +171,7 @@ static void __init py_map_ocd(void) | |||
171 | 171 | ||
172 | static void __init py_uart_setup(void) | 172 | static void __init py_uart_setup(void) |
173 | { | 173 | { |
174 | #ifdef CONFIG_SERIAL_8250 | ||
174 | struct uart_port up; | 175 | struct uart_port up; |
175 | 176 | ||
176 | /* | 177 | /* |
@@ -188,6 +189,7 @@ static void __init py_uart_setup(void) | |||
188 | 189 | ||
189 | if (early_serial_setup(&up)) | 190 | if (early_serial_setup(&up)) |
190 | printk(KERN_ERR "Early serial init of port 0 failed\n"); | 191 | printk(KERN_ERR "Early serial init of port 0 failed\n"); |
192 | #endif /* CONFIG_SERIAL_8250 */ | ||
191 | } | 193 | } |
192 | 194 | ||
193 | static void __init py_rtc_setup(void) | 195 | static void __init py_rtc_setup(void) |