]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
serial: sh-sci: sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 17 Dec 2008 05:53:24 +0000 (14:53 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 22 Dec 2008 09:44:46 +0000 (18:44 +0900)
sci_poll_put_char() happens to also be used by the serial console,
while sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL. Add
another gnarly ifdef to shut up the compiler.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/serial/sh-sci.c

index cf663b718697bc5578015654f2ac985051e0176e..a628081e586e33b1fc90ed0e9802c8bce244efdf 100644 (file)
@@ -99,6 +99,8 @@ to_sci_port(struct uart_port *uart)
 }
 
 #if defined(CONFIG_CONSOLE_POLL) || defined(CONFIG_SERIAL_SH_SCI_CONSOLE)
+
+#ifdef CONFIG_CONSOLE_POLL
 static inline void handle_error(struct uart_port *port)
 {
        /* Clear error flags */
@@ -126,6 +128,7 @@ static int sci_poll_get_char(struct uart_port *port)
 
        return c;
 }
+#endif
 
 static void sci_poll_put_char(struct uart_port *port, unsigned char c)
 {