Skip to content

Commit

Permalink
istallion: Use helpers
Browse files Browse the repository at this point in the history
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 <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 22, 2008
1 parent c68a99c commit ed569bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/istallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ed569bf

Please sign in to comment.