mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Bluetooth: btusb: Remove device lock on release
Recently we changed the way how we release driver-data. A driver is now responsible of destroying the data so we no longer need the device lock on deinitialization in btusb driver. Signed-off-by: David Herrmann <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Signed-off-by: Johan Hedberg <[email protected]>
This commit is contained in:
parent
2dd106887d
commit
9ab875affb
1 changed files with 0 additions and 5 deletions
|
|
@ -1079,9 +1079,6 @@ static void btusb_disconnect(struct usb_interface *intf)
|
|||
return;
|
||||
|
||||
hdev = data->hdev;
|
||||
|
||||
hci_dev_hold(hdev);
|
||||
|
||||
usb_set_intfdata(data->intf, NULL);
|
||||
|
||||
if (data->isoc)
|
||||
|
|
@ -1094,8 +1091,6 @@ static void btusb_disconnect(struct usb_interface *intf)
|
|||
else if (data->isoc)
|
||||
usb_driver_release_interface(&btusb_driver, data->isoc);
|
||||
|
||||
hci_dev_put(hdev);
|
||||
|
||||
hci_free_dev(hdev);
|
||||
kfree(data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue