aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r--drivers/tty/serial/sccnxp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c
index 418b495e3233..2ced871becff 100644
--- a/drivers/tty/serial/sccnxp.c
+++ b/drivers/tty/serial/sccnxp.c
@@ -285,10 +285,6 @@ static void sccnxp_handle_rx(struct uart_port *port)
285{ 285{
286 u8 sr; 286 u8 sr;
287 unsigned int ch, flag; 287 unsigned int ch, flag;
288 struct tty_struct *tty = tty_port_tty_get(&port->state->port);
289
290 if (!tty)
291 return;
292 288
293 for (;;) { 289 for (;;) {
294 sr = sccnxp_port_read(port, SCCNXP_SR_REG); 290 sr = sccnxp_port_read(port, SCCNXP_SR_REG);
@@ -333,9 +329,7 @@ static void sccnxp_handle_rx(struct uart_port *port)
333 uart_insert_char(port, sr, SR_OVR, ch, flag); 329 uart_insert_char(port, sr, SR_OVR, ch, flag);
334 } 330 }
335 331
336 tty_flip_buffer_push(tty); 332 tty_flip_buffer_push(&port->state->port);
337
338 tty_kref_put(tty);
339} 333}
340 334
341static void sccnxp_handle_tx(struct uart_port *port) 335static void sccnxp_handle_tx(struct uart_port *port)