Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[firefly-linux-kernel-4.4.55.git] / drivers / tty / moxa.c
index fcaac4870d5f77e29a65094dca188048eb538770..adeac255e526879c1d0e02ba9a747115970a1842 100644 (file)
@@ -1405,7 +1405,7 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
                if (inited && !test_bit(TTY_THROTTLED, &tty->flags) &&
                                MoxaPortRxQueue(p) > 0) { /* RX */
                        MoxaPortReadData(p);
-                       tty_schedule_flip(tty);
+                       tty_schedule_flip(&p->port);
                }
        } else {
                clear_bit(EMPTYWAIT, &p->statusflags);
@@ -1429,8 +1429,8 @@ static int moxa_poll_port(struct moxa_port *p, unsigned int handle,
                goto put;
 
        if (tty && (intr & IntrBreak) && !I_IGNBRK(tty)) { /* BREAK */
-               tty_insert_flip_char(tty, 0, TTY_BREAK);
-               tty_schedule_flip(tty);
+               tty_insert_flip_char(&p->port, 0, TTY_BREAK);
+               tty_schedule_flip(&p->port);
        }
 
        if (intr & IntrLine)