]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[Bluetooth] Attach low-level connections to the Bluetooth bus
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 18 Nov 2006 21:14:05 +0000 (22:14 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 22 Nov 2006 00:16:28 +0000 (16:16 -0800)
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>
net/bluetooth/hci_sysfs.c

index 954eb74eb370a34cb97050c9bec17e8cbfdff08c..3eeeb7a86e753cc638993e1ef9214de51adbdfbe 100644 (file)
@@ -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,