diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-10-15 11:30:50 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-16 02:14:29 -0400 |
commit | e9c4bec63eac001651d6d30239dd4175cc3698ef (patch) | |
tree | 1410a855bc5312b485ba0c91e1dc3c59c9ca4f75 /net/bluetooth | |
parent | df5c37ea9a3820a9515d8204450aec00f48f8f88 (diff) |
[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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_sysfs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index c7e079d3c486..954eb74eb370 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c | |||
@@ -299,11 +299,7 @@ int hci_register_sysfs(struct hci_dev *hdev) | |||
299 | BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); | 299 | BT_DBG("%p name %s type %d", hdev, hdev->name, hdev->type); |
300 | 300 | ||
301 | dev->class = bt_class; | 301 | dev->class = bt_class; |
302 | 302 | dev->parent = hdev->parent; | |
303 | if (hdev->parent) | ||
304 | dev->parent = hdev->parent; | ||
305 | else | ||
306 | dev->parent = &bt_platform->dev; | ||
307 | 303 | ||
308 | strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); | 304 | strlcpy(dev->bus_id, hdev->name, BUS_ID_SIZE); |
309 | 305 | ||