aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sunhv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/sunhv.c')
-rw-r--r--drivers/tty/serial/sunhv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/tty/serial/sunhv.c b/drivers/tty/serial/sunhv.c
index defe92b19e16..ba60708053e0 100644
--- a/drivers/tty/serial/sunhv.c
+++ b/drivers/tty/serial/sunhv.c
@@ -181,17 +181,17 @@ static struct sunhv_ops bywrite_ops = {
181 181
182static struct sunhv_ops *sunhv_ops = &bychar_ops; 182static struct sunhv_ops *sunhv_ops = &bychar_ops;
183 183
184static struct tty_struct *receive_chars(struct uart_port *port) 184static struct tty_port *receive_chars(struct uart_port *port)
185{ 185{
186 struct tty_struct *tty = NULL; 186 struct tty_port *tport = NULL;
187 187
188 if (port->state != NULL) /* Unopened serial console */ 188 if (port->state != NULL) /* Unopened serial console */
189 tty = port->state->port.tty; 189 tport = &port->state->port;
190 190
191 if (sunhv_ops->receive_chars(port)) 191 if (sunhv_ops->receive_chars(port))
192 sun_do_break(); 192 sun_do_break();
193 193
194 return tty; 194 return tport;
195} 195}
196 196
197static void transmit_chars(struct uart_port *port) 197static void transmit_chars(struct uart_port *port)
@@ -214,16 +214,16 @@ static void transmit_chars(struct uart_port *port)
214static irqreturn_t sunhv_interrupt(int irq, void *dev_id) 214static irqreturn_t sunhv_interrupt(int irq, void *dev_id)
215{ 215{
216 struct uart_port *port = dev_id; 216 struct uart_port *port = dev_id;
217 struct tty_struct *tty; 217 struct tty_port *tport;
218 unsigned long flags; 218 unsigned long flags;
219 219
220 spin_lock_irqsave(&port->lock, flags); 220 spin_lock_irqsave(&port->lock, flags);
221 tty = receive_chars(port); 221 tport = receive_chars(port);
222 transmit_chars(port); 222 transmit_chars(port);
223 spin_unlock_irqrestore(&port->lock, flags); 223 spin_unlock_irqrestore(&port->lock, flags);
224 224
225 if (tty) 225 if (tport)
226 tty_flip_buffer_push(tty); 226 tty_flip_buffer_push(tport);
227 227
228 return IRQ_HANDLED; 228 return IRQ_HANDLED;
229} 229}