serial: 8250_pxa: hide early console setup when disabled
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Nov 2016 13:27:00 +0000 (14:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 13:34:27 +0000 (14:34 +0100)
commit9211432b4ac59b090ae67380b034d8e33077e23c
tree7df5438fb76e4138ecaceab3e6db0d89803979c7
parentda7fa058a36cd8d4ebd42001fa72a40c0aefd6e3
serial: 8250_pxa: hide early console setup when disabled

The newly added pxa glue driver for 8250 supports console output, but
fails to build if the 8250 console is disabled:

drivers/tty/serial/8250/8250_pxa.o: In function `early_serial_pxa_setup':
8250_pxa.c:(.init.text+0x50): undefined reference to `early_serial8250_setup'

This adds an #ifdef like the other glue drivers have it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pxa.c