]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
istallion: Use helpers
authorAlan Cox <alan@redhat.com>
Tue, 22 Jul 2008 12:44:14 +0000 (13:44 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Jul 2008 20:03:29 +0000 (13:03 -0700)
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>
drivers/char/istallion.c

index 63d22b5ebc0dd2dbc4aa6b3070c4a7d5b6f09707..f9ebcd41d8e5dd765643a10cc76a5b6a88910638 100644 (file)
@@ -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);