Skip to content

Commit

Permalink
[Bluetooth] Make use of virtual devices tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Oct 16, 2006
1 parent df5c37e commit e9c4bec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
dev->parent = hdev->parent;

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

Expand Down

0 comments on commit e9c4bec

Please sign in to comment.