vserver 1.9.3
[linux-2.6.git] / drivers / usb / serial / whiteheat.c
index b27741b..1b75901 100644 (file)
@@ -668,8 +668,7 @@ static void whiteheat_close(struct usb_serial_port *port, struct file * filp)
 
        if (port->tty->driver->flush_buffer)
                port->tty->driver->flush_buffer(port->tty);
-       if (port->tty->ldisc.flush_buffer)
-               port->tty->ldisc.flush_buffer(port->tty);
+       tty_ldisc_flush(port->tty);
 
        firm_report_tx_done(port);