aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/lpc32xx_hs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/lpc32xx_hs.c')
-rw-r--r--drivers/tty/serial/lpc32xx_hs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/tty/serial/lpc32xx_hs.c b/drivers/tty/serial/lpc32xx_hs.c
index c8448e6f52e5..c01b58f3729c 100644
--- a/drivers/tty/serial/lpc32xx_hs.c
+++ b/drivers/tty/serial/lpc32xx_hs.c
@@ -323,7 +323,6 @@ static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id)
323{ 323{
324 struct uart_port *port = dev_id; 324 struct uart_port *port = dev_id;
325 struct tty_port *port = &port->state->port; 325 struct tty_port *port = &port->state->port;
326 struct tty_struct *tty = tty_port_tty_get(tport);
327 u32 status; 326 u32 status;
328 327
329 spin_lock(&port->lock); 328 spin_lock(&port->lock);
@@ -348,9 +347,7 @@ static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id)
348 LPC32XX_HSUART_IIR(port->membase)); 347 LPC32XX_HSUART_IIR(port->membase));
349 port->icount.overrun++; 348 port->icount.overrun++;
350 tty_insert_flip_char(tport, 0, TTY_OVERRUN); 349 tty_insert_flip_char(tport, 0, TTY_OVERRUN);
351 if (tty) { 350 tty_schedule_flip(tport);
352 tty_schedule_flip(tty);
353 }
354 } 351 }
355 352
356 /* Data received? */ 353 /* Data received? */
@@ -366,7 +363,6 @@ static irqreturn_t serial_lpc32xx_interrupt(int irq, void *dev_id)
366 } 363 }
367 364
368 spin_unlock(&port->lock); 365 spin_unlock(&port->lock);
369 tty_kref_put(tty);
370 366
371 return IRQ_HANDLED; 367 return IRQ_HANDLED;
372} 368}