Commit ba6cf9f4 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: switching microtek to usb_kill_urb

this reworks the microtek driver's disconnect method, now that
usb_kill_urb is available.
Signed-Off-By: default avatarOliver Neukum <oliver@neukum.name>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 92d42510
......@@ -324,7 +324,7 @@ static inline void mts_urb_abort(struct mts_desc* desc) {
MTS_DEBUG_GOT_HERE();
mts_debug_dump(desc);
usb_unlink_urb( desc->urb );
usb_kill_urb( desc->urb );
}
static int mts_scsi_abort (Scsi_Cmnd *srb)
......@@ -822,9 +822,8 @@ static void mts_usb_disconnect (struct usb_interface *intf)
usb_set_intfdata(intf, NULL);
usb_kill_urb(desc->urb);
scsi_remove_host(desc->host);
usb_unlink_urb(desc->urb);
scsi_host_put(desc->host);
usb_free_urb(desc->urb);
kfree(desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment