Skip to content

Commit

Permalink
blackfin: Fix tty compile error in PIO mode
Browse files Browse the repository at this point in the history
Fixes this compile issue:

  drivers/serial/bfin_5xx.c: In function bfin_serial_rx_chars:
  drivers/serial/bfin_5xx.c:178: error: struct uart_info has no member named tty

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Sonic Zhang authored and Linus Torvalds committed Apr 6, 2009
1 parent 59e4e3e commit df04baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/bfin_5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ static void bfin_serial_rx_chars(struct bfin_serial_port *uart)
return;
}

if (!uart->port.info || !uart->port.info->tty)
if (!uart->port.info || !uart->port.info->port.tty)
return;
#endif
tty = uart->port.info->tty;
tty = uart->port.info->port.tty;

if (ANOMALY_05000363) {
/* The BF533 (and BF561) family of processors have a nice anomaly
Expand Down

0 comments on commit df04baf

Please sign in to comment.