提交 9ab875af 编写于 作者: D David Herrmann 提交者: Johan Hedberg

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: NDavid Herrmann <dh.herrmann@googlemail.com>
Acked-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
上级 2dd10688
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册