[Bluetooth] Make use of virtual devices tree
[deliverable/linux.git] / net / bluetooth / hci_sysfs.c
index c7e079d3c486c08bccf208f1f0bd36d7256a3e03..954eb74eb370a34cb97050c9bec17e8cbfdff08c 100644 (file)
@@ -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);
 
This page took 0.024414 seconds and 5 git commands to generate.