提交 1f6fd5c9 编写于 作者: P Paul Mundt

serial: sh-sci: sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL.

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: NPaul Mundt <lethal@linux-sh.org>
上级 073da9c0
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册