summaryrefslogtreecommitdiff
path: root/drivers/char/istallion.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-07-22 16:44:14 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-23 00:03:29 +0400
commited569bfb8e5d0725db11018130e44eb567d829c1 (patch)
treeeda932b2a6a9120385b155e089d1c076434c8b7b /drivers/char/istallion.c
parentc68a99cda87a8356ea0e56cc5111043ac8402ffd (diff)
downloadlinux-ed569bfb8e5d0725db11018130e44eb567d829c1.tar.xz
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 <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/istallion.c')
-rw-r--r--drivers/char/istallion.c3
1 files changed, 1 insertions, 2 deletions
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);