Skip to content

Commit e9c4bec

Browse files
holtmannDavid S. Miller
authored andcommitted
[Bluetooth] Make use of virtual devices tree
The Bluetooth subsystem currently uses a platform device for devices with no parent. It is a better idea to use the new virtual devices tree for these. Signed-off-by: Marcel Holtmann <[email protected]>
1 parent df5c37e commit e9c4bec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

net/bluetooth/hci_sysfs.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,7 @@ int hci_register_sysfs(struct hci_dev *hdev)
299299
BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);
300300

301301
dev->class = bt_class;
302-
303-
if (hdev->parent)
304-
dev->parent = hdev->parent;
305-
else
306-
dev->parent = &bt_platform->dev;
302+
dev->parent = hdev->parent;
307303

308304
strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE);
309305

0 commit comments

Comments
 (0)