aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/sh-sci.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-07-16 16:54:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-20 20:12:36 -0400
commita88487c79bfefb715030c5baa68fbedc1b8732e8 (patch)
tree1bf54afe3ec0a8aef77fc0e4ccc2c922a918ad98 /drivers/serial/sh-sci.c
parentb1ca7e7a0b35874b2a9cae60f8f5b78df575faa7 (diff)
Fix compile errors in SGI console drivers (linux-next tree)
The below is the patch to replace blindly all possible places, including Jack's fixes. Signed-off-by: Takashi Iwai <tiwai@suse.de> (Reviewed and checked rather than blindly added) Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/sh-sci.c')
-rw-r--r--drivers/serial/sh-sci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c
index ce6ee92b3a1b..208e42ba9455 100644
--- a/drivers/serial/sh-sci.c
+++ b/drivers/serial/sh-sci.c
@@ -521,7 +521,7 @@ static void sci_transmit_chars(struct uart_port *port)
521static inline void sci_receive_chars(struct uart_port *port) 521static inline void sci_receive_chars(struct uart_port *port)
522{ 522{
523 struct sci_port *sci_port = (struct sci_port *)port; 523 struct sci_port *sci_port = (struct sci_port *)port;
524 struct tty_struct *tty = port->info->tty; 524 struct tty_struct *tty = port->info->port.tty;
525 int i, count, copied = 0; 525 int i, count, copied = 0;
526 unsigned short status; 526 unsigned short status;
527 unsigned char flag; 527 unsigned char flag;
@@ -642,7 +642,7 @@ static inline int sci_handle_errors(struct uart_port *port)
642{ 642{
643 int copied = 0; 643 int copied = 0;
644 unsigned short status = sci_in(port, SCxSR); 644 unsigned short status = sci_in(port, SCxSR);
645 struct tty_struct *tty = port->info->tty; 645 struct tty_struct *tty = port->info->port.tty;
646 646
647 if (status & SCxSR_ORER(port)) { 647 if (status & SCxSR_ORER(port)) {
648 /* overrun error */ 648 /* overrun error */
@@ -692,7 +692,7 @@ static inline int sci_handle_breaks(struct uart_port *port)
692{ 692{
693 int copied = 0; 693 int copied = 0;
694 unsigned short status = sci_in(port, SCxSR); 694 unsigned short status = sci_in(port, SCxSR);
695 struct tty_struct *tty = port->info->tty; 695 struct tty_struct *tty = port->info->port.tty;
696 struct sci_port *s = &sci_ports[port->line]; 696 struct sci_port *s = &sci_ports[port->line];
697 697
698 if (uart_handle_break(port)) 698 if (uart_handle_break(port))
@@ -762,7 +762,7 @@ static irqreturn_t sci_er_interrupt(int irq, void *ptr)
762 } else { 762 } else {
763#if defined(SCIF_ORER) 763#if defined(SCIF_ORER)
764 if((sci_in(port, SCLSR) & SCIF_ORER) != 0) { 764 if((sci_in(port, SCLSR) & SCIF_ORER) != 0) {
765 struct tty_struct *tty = port->info->tty; 765 struct tty_struct *tty = port->info->port.tty;
766 766
767 sci_out(port, SCLSR, 0); 767 sci_out(port, SCLSR, 0);
768 tty_insert_flip_char(tty, 0, TTY_OVERRUN); 768 tty_insert_flip_char(tty, 0, TTY_OVERRUN);