tty/serial: lay the foundations for the next set of reworks
[linux-2.6-block.git] / drivers / char / generic_serial.c
index 7ed7da1d99cf9120f238601e794df7845992ff2a..f6610f28d657c223c730797f53d22357a6ceb984 100644 (file)
@@ -586,8 +586,7 @@ void gs_close(struct tty_struct * tty, struct file * filp)
 
        port->flags &= ~GS_ACTIVE;
 
-       if (tty->driver->flush_buffer)
-               tty->driver->flush_buffer(tty);
+       gs_flush_buffer(tty);
 
        tty_ldisc_flush(tty);
        tty->closing = 0;