serial: pxa: fix build with !SERIAL_PXA_CONSOLE
authorArnd Bergmann <arnd@arndb.de>
Tue, 18 Feb 2014 15:14:20 +0000 (16:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:48:41 +0000 (15:48 -0700)
When CONFIG_SERIAL_PXA_CONSOLE is disabled, the serial_pxa_get_poll_char
and serial_pxa_put_poll_char functions are not defined, and we can't
reference them.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pxa.c

index c638c53cd2b698422d82f4a797a2ecf1c5fa88a6..21b7d8b8649354658868bace59a66d812970677d 100644 (file)
@@ -778,7 +778,7 @@ static struct uart_ops serial_pxa_pops = {
        .request_port   = serial_pxa_request_port,
        .config_port    = serial_pxa_config_port,
        .verify_port    = serial_pxa_verify_port,
-#ifdef CONFIG_CONSOLE_POLL
+#if defined(CONFIG_CONSOLE_POLL) && defined(CONFIG_SERIAL_PXA_CONSOLE)
        .poll_get_char = serial_pxa_get_poll_char,
        .poll_put_char = serial_pxa_put_poll_char,
 #endif