|
@@ -925,8 +925,7 @@ static void stli_close(struct tty_struct *tty, struct file *filp)
|
|
|
clear_bit(ST_TXBUSY, &portp->state);
|
|
|
clear_bit(ST_RXSTOP, &portp->state);
|
|
|
set_bit(TTY_IO_ERROR, &tty->flags);
|
|
|
- if (tty->ldisc.ops->flush_buffer)
|
|
|
- (tty->ldisc.ops->flush_buffer)(tty);
|
|
|
+ tty_ldisc_flush(tty);
|
|
|
set_bit(ST_DOFLUSHRX, &portp->state);
|
|
|
stli_flushbuffer(tty);
|
|
|
|