diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-01-07 09:47:22 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 10:01:24 -0500 |
commit | e9b9cfa1575e37cb2dbb5534aeaaa16814228887 (patch) | |
tree | 4f0a8e2a1c9b8776b1c637df081792b5dda88cd3 /drivers/bluetooth/hci_ldisc.c | |
parent | 46e06531a5ae13c66f774d3cb1ad78385618a5a2 (diff) |
Bluetooth: Remove HCI-owner field
After unregistering an hci_dev object a bluetooth driver does not have
any callbacks in the hci_dev structure left over. Therefore, there is no
need to keep a reference to the module.
Previously, we needed this to protect the hci-destruct callback.
However, this callback is no longer available so we do not need this
owner field, anymore. Drivers now call hci_unregister_dev() and they
are done with the object.
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/hci_ldisc.c')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 5ea49df3462b..459ff0ba5a42 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -392,8 +392,6 @@ static int hci_uart_register_dev(struct hci_uart *hu) | |||
392 | hdev->send = hci_uart_send_frame; | 392 | hdev->send = hci_uart_send_frame; |
393 | hdev->parent = hu->tty->dev; | 393 | hdev->parent = hu->tty->dev; |
394 | 394 | ||
395 | hdev->owner = THIS_MODULE; | ||
396 | |||
397 | if (!reset) | 395 | if (!reset) |
398 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 396 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); |
399 | 397 | ||