Skip to contentSkip to conversation

sh: fix sh-sci build breakage in linux-next

PATCH New Magnus Damm 1 participant 1 message Jul 5, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: fix sh-sci build breakage in linux-next

Fix tty member build error in sh-sci.c.

---

Applies to linux-next, works ok on ap325rxa.

 drivers/serial/sh-sci.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/serial/sh-sci.c +4 -4
@@ -536,7 +536,7 @@ static void sci_transmit_chars(struct ua
 static inline void sci_receive_chars(struct uart_port *port)
 {
 	struct sci_port *sci_port = (struct sci_port *)port;
-	struct tty_struct *tty = port->info->tty;
+	struct tty_struct *tty = port->info->port.tty;
 	int i, count, copied = 0;
 	unsigned short status;
 	unsigned char flag;
@@ -657,7 +657,7 @@ static inline int sci_handle_errors(stru
 {
 	int copied = 0;
 	unsigned short status = sci_in(port, SCxSR);
-	struct tty_struct *tty = port->info->tty;
+	struct tty_struct *tty = port->info->port.tty;
 
 	if (status & SCxSR_ORER(port)) {
 		/* overrun error */
@@ -707,7 +707,7 @@ static inline int sci_handle_breaks(stru
 {
 	int copied = 0;
 	unsigned short status = sci_in(port, SCxSR);
-	struct tty_struct *tty = port->info->tty;
+	struct tty_struct *tty = port->info->port.tty;
 	struct sci_port *s = &sci_ports[port->line];
 
 	if (uart_handle_break(port))
@@ -777,7 +777,7 @@ static irqreturn_t sci_er_interrupt(int 
 	} else {
 #if defined(SCIF_ORER)
 		if((sci_in(port, SCLSR) & SCIF_ORER) != 0) {
-			struct tty_struct *tty = port->info->tty;
+			struct tty_struct *tty = port->info->port.tty;
 
 			sci_out(port, SCLSR, 0);
 			tty_insert_flip_char(tty, 0, TTY_OVERRUN);