tty/serial: lay the foundations for the next set of reworks
[linux-2.6-block.git] / drivers / char / serial167.c
index f62fb9360c3f0a53463ac1e49502b995c7d69733..62d6f2e0fd1881c960fd322ca12f4d75ff1cc22d 100644 (file)
@@ -1674,8 +1674,7 @@ static void cy_close(struct tty_struct *tty, struct file *filp)
        if (info->flags & ASYNC_INITIALIZED)
                tty_wait_until_sent(tty, 3000); /* 30 seconds timeout */
        shutdown(info);
-       if (tty->driver->flush_buffer)
-               tty->driver->flush_buffer(tty);
+       cy_flush_buffer(tty);
        tty_ldisc_flush(tty);
        info->tty = NULL;
        if (info->blocked_open) {