From: Marcel Holtmann Date: Sat, 18 Nov 2006 21:14:05 +0000 (+0100) Subject: [Bluetooth] Attach low-level connections to the Bluetooth bus X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e52726dece1d2e3976c0caf2f4e9e1c452d31282;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 --- diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 954eb74eb37..3eeeb7a86e7 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,