aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/pch_uart.c
diff options
context:
space:
mode:
authorLuis Henriques <luis.henriques@canonical.com>2013-08-14 18:18:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-14 21:33:43 -0400
commit09a5163f5c0eb0944f3a2c219acd75933f74fda2 (patch)
tree42f902793ebc3591b798c12890456c8e6baae474 /drivers/tty/serial/pch_uart.c
parent1ef39808ca27837017a433f94aa7055cb8490e80 (diff)
serial: pch_uart: fix compilation warning
Function wait_for_xmitr is invoked only on functions that either depend on CONFIG_CONSOLE_POLL or CONFIG_SERIAL_PCH_UART_CONSOLE. This patch fixes the following warning: drivers/tty/serial/pch_uart.c:1504:13: warning: ‘wait_for_xmitr’ defined but not used [-Wunused-function] Signed-off-by: Luis Henriques <luis.henriques@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/pch_uart.c')
-rw-r--r--drivers/tty/serial/pch_uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 5040c517f3b8..52379e56a31e 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -1524,6 +1524,7 @@ static int pch_uart_verify_port(struct uart_port *port,
1524 return 0; 1524 return 0;
1525} 1525}
1526 1526
1527#if defined(CONFIG_CONSOLE_POLL) || defined(CONFIG_SERIAL_PCH_UART_CONSOLE)
1527/* 1528/*
1528 * Wait for transmitter & holding register to empty 1529 * Wait for transmitter & holding register to empty
1529 */ 1530 */
@@ -1554,6 +1555,7 @@ static void wait_for_xmitr(struct eg20t_port *up, int bits)
1554 } 1555 }
1555 } 1556 }
1556} 1557}
1558#endif /* CONFIG_CONSOLE_POLL || CONFIG_SERIAL_PCH_UART_CONSOLE */
1557 1559
1558#ifdef CONFIG_CONSOLE_POLL 1560#ifdef CONFIG_CONSOLE_POLL
1559/* 1561/*