]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
avr32: atmel_default_console_device depends on CONFIG_SERIAL_ATMEL
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 11 Feb 2013 09:34:57 +0000 (10:34 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 16 Jun 2013 11:47:16 +0000 (13:47 +0200)
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>
arch/avr32/mach-at32ap/at32ap700x.c

index 7c2f6685bf434d06afa68bfc4f2f86b34db3d4c8..7f8759a8a92a08b8ed8e772d9f08c9d3404d8697 100644 (file)
@@ -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
 }
 
 /* --------------------------------------------------------------------