aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-18 22:14:05 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-11-21 16:16:28 -0800
commite52726dece1d2e3976c0caf2f4e9e1c452d31282 (patch)
tree4aad209ec6e1c5700f97b91fc5c1b65cd1c4f6f5
parent53ab61c6d8f391bda04dbc1e95bac348fe81103b (diff)
downloadlinux-hpc-e52726dece1d2e3976c0caf2f4e9e1c452d31282.tar.gz
[Bluetooth] Attach low-level connections to the Bluetooth bus
To receive uvents for the low-level ACL and SCO links, they must be assigned to a subsystem. It is enough to attach them to the already established Bluetooth bus. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--net/bluetooth/hci_sysfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 954eb74eb370a3..3eeeb7a86e753c 100644
--- a/net/bluetooth/hci_sysfs.c
+++ b/net/bluetooth/hci_sysfs.c
@@ -259,7 +259,9 @@ void hci_conn_add_sysfs(struct hci_conn *conn)
BT_DBG("conn %p", conn);
- conn->dev.parent = &hdev->dev;
+ conn->dev.bus = &bt_bus;
+ conn->dev.parent = &hdev->dev;
+
conn->dev.release = bt_release;
snprintf(conn->dev.bus_id, BUS_ID_SIZE,