summaryrefslogtreecommitdiffstats
path: root/arch/avr32
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-02-11 10:34:57 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-06-16 13:47:16 +0200
commitb5cc48914529152a5f546c74a6802b17284ed7a1 (patch)
tree0f8ae50b2c769b469f596f38eda4dd08931713c3 /arch/avr32
parent317ddd256b9c24b0d78fa8018f80f1e495481a10 (diff)
downloadop-kernel-dev-b5cc48914529152a5f546c74a6802b17284ed7a1.zip
op-kernel-dev-b5cc48914529152a5f546c74a6802b17284ed7a1.tar.gz
avr32: atmel_default_console_device depends on CONFIG_SERIAL_ATMEL
allnoconfig: arch/avr32/mach-at32ap/built-in.o: In function `at32_select_gpio': (.init.text+0x548): undefined reference to `atmel_default_console_device' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/mach-at32ap/at32ap700x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index 7c2f668..7f8759a 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -1060,7 +1060,9 @@ struct platform_device *__init at32_add_device_usart(unsigned int id)
void __init at32_setup_serial_console(unsigned int usart_id)
{
+#ifdef CONFIG_SERIAL_ATMEL
atmel_default_console_device = at32_usarts[usart_id];
+#endif
}
/* --------------------------------------------------------------------
OpenPOWER on IntegriCloud