diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-02-09 21:58:31 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 17:01:38 +0200 |
commit | 9ab875affbe61b2c88685c342461c9a367ab7a3e (patch) | |
tree | c3386a10c79f33eab3cddcf258453ae4129ec9a5 /drivers/bluetooth | |
parent | 2dd106887d6503819f2cedc408497023547439bb (diff) | |
download | op-kernel-dev-9ab875affbe61b2c88685c342461c9a367ab7a3e.zip op-kernel-dev-9ab875affbe61b2c88685c342461c9a367ab7a3e.tar.gz |
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 <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index f4fb256..066d5ec 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -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); } |