Commit 9ac26386 authored by Jaroslav Kysela's avatar Jaroslav Kysela Committed by Linus Torvalds

ALSA CVS update - Clemens Ladisch <clemens@ladisch.de>

USB generic driver
remove calls to usb_driver_release_interface
(not needed when disconnect is called)
parent a9b095e4
No related merge requests found
......@@ -2422,7 +2422,6 @@ static void snd_usb_stream_disconnect(struct list_head *head, struct usb_driver
int idx;
snd_usb_stream_t *as;
snd_usb_substream_t *subs;
struct list_head *p;
as = list_entry(head, snd_usb_stream_t, list);
for (idx = 0; idx < 2; idx++) {
......@@ -2431,11 +2430,6 @@ static void snd_usb_stream_disconnect(struct list_head *head, struct usb_driver
return;
release_substream_urbs(subs, 1);
subs->interface = -1;
/* release interfaces */
list_for_each(p, &subs->fmt_list) {
struct audioformat *fp = list_entry(p, struct audioformat, list);
usb_driver_release_interface(driver, usb_ifnum_to_if(subs->dev, fp->iface));
}
}
}
......
......@@ -714,7 +714,6 @@ void snd_usbmidi_disconnect(struct list_head* p, struct usb_driver *driver)
if (ep->in && ep->in->urb)
usb_unlink_urb(ep->in->urb);
}
usb_driver_release_interface(driver, umidi->iface);
}
static void snd_usbmidi_rawmidi_free(snd_rawmidi_t* rmidi)
......
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