From: Alan Cox Date: Tue, 22 Jul 2008 12:44:14 +0000 (+0100) Subject: istallion: Use helpers X-Git-Tag: firefly_0821_release~19463 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ed569bfb8e5d0725db11018130e44eb567d829c1;p=firefly-linux-kernel-4.4.55.git istallion: Use helpers The ldisc needs to be referenced properly when used. The tty layer has a helper for this which should have been used but this driver got missed originally. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index 63d22b5ebc0d..f9ebcd41d8e5 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c @@ -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);