tty/serial: lay the foundations for the next set of reworks
[linux-2.6-block.git] / drivers / isdn / i4l / isdn_tty.c
index a033f53209d525f5615f73961b46b97831bebb71..1a2222cbb80541bc492d78cef045f0844a08fad6 100644 (file)
@@ -1708,9 +1708,7 @@ isdn_tty_close(struct tty_struct *tty, struct file *filp)
        }
        dev->modempoll--;
        isdn_tty_shutdown(info);
-       
-       if (tty->driver->flush_buffer)
-               tty->driver->flush_buffer(tty);
+       isdn_tty_flush_buffer(tty);
        tty_ldisc_flush(tty);
        info->tty = NULL;
        info->ncarrier = 0;