diff options
Diffstat (limited to 'drivers/serial/sh-sci.c')
-rw-r--r-- | drivers/serial/sh-sci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index cf663b718697..a628081e586e 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c | |||
@@ -99,6 +99,8 @@ to_sci_port(struct uart_port *uart) | |||
99 | } | 99 | } |
100 | 100 | ||
101 | #if defined(CONFIG_CONSOLE_POLL) || defined(CONFIG_SERIAL_SH_SCI_CONSOLE) | 101 | #if defined(CONFIG_CONSOLE_POLL) || defined(CONFIG_SERIAL_SH_SCI_CONSOLE) |
102 | |||
103 | #ifdef CONFIG_CONSOLE_POLL | ||
102 | static inline void handle_error(struct uart_port *port) | 104 | static inline void handle_error(struct uart_port *port) |
103 | { | 105 | { |
104 | /* Clear error flags */ | 106 | /* Clear error flags */ |
@@ -126,6 +128,7 @@ static int sci_poll_get_char(struct uart_port *port) | |||
126 | 128 | ||
127 | return c; | 129 | return c; |
128 | } | 130 | } |
131 | #endif | ||
129 | 132 | ||
130 | static void sci_poll_put_char(struct uart_port *port, unsigned char c) | 133 | static void sci_poll_put_char(struct uart_port *port, unsigned char c) |
131 | { | 134 | { |