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 <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
David Herrmann
2012-01-07 15:47:24 +01:00
committed by Johan Hedberg
parent 4c724c7135
commit dc946bd86f
3 changed files with 6 additions and 14 deletions

View File

@@ -1654,7 +1654,7 @@ int hci_register_dev(struct hci_dev *hdev)
schedule_work(&hdev->power_on);
hci_notify(hdev, HCI_DEV_REG);
__hci_dev_hold(hdev);
hci_dev_hold(hdev);
return id;
@@ -1717,7 +1717,7 @@ void hci_unregister_dev(struct hci_dev *hdev)
hci_adv_entries_clear(hdev);
hci_dev_unlock(hdev);
__hci_dev_put(hdev);
hci_dev_put(hdev);
}
EXPORT_SYMBOL(hci_unregister_dev);