Skip to content

Commit

Permalink
Bluetooth: btusb: Remove device lock on release
Browse files Browse the repository at this point in the history
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 <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
David Herrmann authored and Johan Hedberg committed Feb 13, 2012
1 parent 2dd1068 commit 9ab875a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}
Expand Down

0 comments on commit 9ab875a

Please sign in to comment.