diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2011-11-16 10:30:20 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-21 11:45:38 -0500 |
commit | c6feeb28aed51831c27c9f42e5c15129b1562a5b (patch) | |
tree | d484d452aca00f07806d70916f12bbf6281f841b /net/bluetooth/hci_core.c | |
parent | 47c15e2b332dd51048170915ad8c4ab4b47e3bf2 (diff) |
Bluetooth: Use queue in the device list
Use queue instead of stack discipline for device list. When processing
dev_list with list_for_each* devices will be prosessed in order they
were added (Usually BR/EDR first and AMP later).
Also output from hciconfig looks nicer :-)
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 086e157ebf4..ef0423e62a2 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -1452,7 +1452,7 @@ int hci_register_dev(struct hci_dev *hdev) | |||
1452 | 1452 | ||
1453 | sprintf(hdev->name, "hci%d", id); | 1453 | sprintf(hdev->name, "hci%d", id); |
1454 | hdev->id = id; | 1454 | hdev->id = id; |
1455 | list_add(&hdev->list, head); | 1455 | list_add_tail(&hdev->list, head); |
1456 | 1456 | ||
1457 | atomic_set(&hdev->refcnt, 1); | 1457 | atomic_set(&hdev->refcnt, 1); |
1458 | spin_lock_init(&hdev->lock); | 1458 | spin_lock_init(&hdev->lock); |