]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/irda/ircomm/ircomm_tty.c
tty: The big operations rework
[linux-2.6-omap-h63xx.git] / net / irda / ircomm / ircomm_tty.c
index d2620410cb0aa1215c2e60682f215618466e069f..76c3057d01790c23ae1e1055e6927cf6c2d2a6a0 100644 (file)
@@ -555,10 +555,8 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
 
        ircomm_tty_shutdown(self);
 
-       if (tty->driver->flush_buffer)
-               tty->driver->flush_buffer(tty);
-       if (tty->ldisc.flush_buffer)
-               tty->ldisc.flush_buffer(tty);
+       tty_driver_flush_buffer(tty);
+       tty_ldisc_flush(tty);
 
        tty->closing = 0;
        self->tty = NULL;