Skip to content

Commit

Permalink
serial: sh-sci: sci_poll_get_char() is only used by CONFIG_CONSOLE_POLL.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Dec 22, 2008
1 parent 073da9c commit 1f6fd5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 1f6fd5c

Please sign in to comment.