Re: [PATCH] serial: 8250_pxa: hide early console setup when disabled

From: Robert Jarzmik
Date: Wed Nov 09 2016 - 15:16:55 EST


Arnd Bergmann <arnd@xxxxxxxx> writes:

> 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@xxxxxxxx>
Acked-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>

Cheers.

--
Robert