]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Bluetooth: btusb: Remove device lock on release
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 9 Feb 2012 20:58:31 +0000 (21:58 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:38 +0000 (17:01 +0200)
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>
drivers/bluetooth/btusb.c

index f4fb256d6ca691618434b945c28d0ecdce6c14b9..066d5ec83a9b562afef14200e0e0e372aab47945 100644 (file)
@@ -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);
 }