USB: serial: refactor generic close
[linux-2.6.git] / drivers / usb / serial / mct_u232.c
index 2849f8c..7aa01b9 100644 (file)
@@ -549,12 +549,9 @@ static void mct_u232_close(struct usb_serial_port *port)
 {
        dbg("%s port %d", __func__, port->number);
 
-       if (port->serial->dev) {
-               /* shutdown our urbs */
-               usb_kill_urb(port->write_urb);
-               usb_kill_urb(port->read_urb);
+       usb_serial_generic_close(port);
+       if (port->serial->dev)
                usb_kill_urb(port->interrupt_in_urb);
-       }
 } /* mct_u232_close */