Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 <marcel@holtmann.org>

authored by

Marcel Holtmann and committed by
David S. Miller
e9c4bec6 df5c37ea

+1 -5
+1 -5
net/bluetooth/hci_sysfs.c
··· 299 299 BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); 300 300 301 301 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; 307 303 308 304 strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); 309 305