Commit 4e941a9b authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Marcel Holtmann

[Bluetooth] Use usb_kill_urb() for synchronous unlink

The usb_unlink_urb() for synchronous unlink is deprecated and should
be replaced by usb_kill_urb().
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 84038c1d
......@@ -264,7 +264,7 @@ static void bcm203x_disconnect(struct usb_interface *intf)
BT_DBG("intf %p", intf);
usb_unlink_urb(data->urb);
usb_kill_urb(data->urb);
usb_set_intfdata(intf, NULL);
......
......@@ -123,7 +123,7 @@ static void bfusb_unlink_urbs(struct bfusb *bfusb)
while ((skb = skb_dequeue(&bfusb->pending_q))) {
urb = ((struct bfusb_scb *) skb->cb)->urb;
usb_unlink_urb(urb);
usb_kill_urb(urb);
skb_queue_tail(&bfusb->completed_q, skb);
}
......
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