]> err.no Git - linux-2.6/blobdiff - drivers/usb/serial/digi_acceleport.c
USB: debug port converter does not accept more than 8 byte packets
[linux-2.6] / drivers / usb / serial / digi_acceleport.c
index d17d1645714fbb2ab9ee7cf391181b62e869275a..28bc6fcf44f085b2fc4e1c1cbbef01834a7c4c94 100644 (file)
 *    in case a wake up is lost.
 *  - Following Documentation/DocBook/kernel-locking.pdf no spin locks
 *    are held when calling copy_to/from_user or printk.
-*    
-*  $Id: digi_acceleport.c,v 1.80.1.2 2000/11/02 05:45:08 root Exp $
 */
 
 #include <linux/kernel.h>
@@ -573,6 +571,7 @@ static struct usb_serial_driver digi_acceleport_4_device = {
 static long cond_wait_interruptible_timeout_irqrestore(
        wait_queue_head_t *q, long timeout,
        spinlock_t *lock, unsigned long flags)
+__releases(lock)
 {
        DEFINE_WAIT(wait);
 
@@ -1421,8 +1420,7 @@ static void digi_close(struct usb_serial_port *port, struct file *filp)
                tty_wait_until_sent(tty, DIGI_CLOSE_TIMEOUT);
 
        /* flush driver and line discipline buffers */
-       if (tty->driver->flush_buffer)
-               tty->driver->flush_buffer(tty);
+       tty_driver_flush_buffer(tty);
        tty_ldisc_flush(tty);
 
        if (port->serial->dev) {