Bluetooth: Remove __hci_dev_put/hold

Since we remove the owner field of hci_dev hci_dev_put and __hci_dev_put
do the same so we can merge them into one function. Same for
hci_dev_hold and __hci_dev_hold.

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:
David Herrmann 2012-01-07 15:47:24 +01:00 • committed by Johan Hedberg
commit dc946bd86f
3 changed files with 6 additions and 14 deletions

View file

@ -1079,7 +1079,7 @@ static void btusb_disconnect(struct usb_interface *intf)
hdev = data->hdev;
__hci_dev_hold(hdev);
hci_dev_hold(hdev);
usb_set_intfdata(data->intf, NULL);
@ -1093,7 +1093,7 @@ 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_dev_put(hdev);
hci_free_dev(hdev);
kfree(data);