diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-07-24 07:24:15 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-08-03 12:52:45 -0400 |
commit | 50ca961912be315035cb0f3508e35c974851da2a (patch) | |
tree | 148fcdf1771dcfc6b1587b45f04a617c00a64468 /arch/mips/ar7 | |
parent | ea85a0e4cc870d2bb92e3b2007007901209bb7de (diff) |
MIPS: AR7: Fix build failures when CONFIG_SERIAL_8250 is not enabled
This patch fixes the following build failure when CONFIG_SERIAL_8250
is not enabled in the kernel configuration:
arch/mips/ar7/built-in.o: In function 'ar7_register_devices':
platform.c:(.init.text+0x61c): undefined reference to 'early_serial_setup'
platform.c:(.init.text+0x61c): relocation truncated to fit: R_MIPS_26 against 'early_serial_setup'
platform.c:(.init.text+0x68c): undefined reference to 'early_serial_setup'
platform.c:(.init.text+0x68c): relocation truncated to fit: R_MIPS_26 against 'early_serial_setup'
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r-- | arch/mips/ar7/platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index c4d71fb18deb..8ef8266e47f4 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c | |||
@@ -480,6 +480,7 @@ static void __init detect_leds(void) | |||
480 | static int __init ar7_register_devices(void) | 480 | static int __init ar7_register_devices(void) |
481 | { | 481 | { |
482 | int res; | 482 | int res; |
483 | #ifdef CONFIG_SERIAL_8250 | ||
483 | static struct uart_port uart_port[2]; | 484 | static struct uart_port uart_port[2]; |
484 | 485 | ||
485 | memset(uart_port, 0, sizeof(struct uart_port) * 2); | 486 | memset(uart_port, 0, sizeof(struct uart_port) * 2); |
@@ -511,7 +512,7 @@ static int __init ar7_register_devices(void) | |||
511 | if (res) | 512 | if (res) |
512 | return res; | 513 | return res; |
513 | } | 514 | } |
514 | 515 | #endif /* CONFIG_SERIAL_8250 */ | |
515 | res = platform_device_register(&physmap_flash); | 516 | res = platform_device_register(&physmap_flash); |
516 | if (res) | 517 | if (res) |
517 | return res; | 518 | return res; |