Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9c4bec6 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by David S. Miller
Browse files

[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: default avatarMarcel Holtmann <marcel@holtmann.org>
parent df5c37ea
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -299,11 +299,7 @@ int hci_register_sysfs(struct hci_dev *hdev)
	BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type);

	dev->class = bt_class;

	if (hdev->parent)
	dev->parent = hdev->parent;
	else
		dev->parent = &bt_platform->dev;

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