diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 041ce9adc..429b079b1 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -63,19 +63,6 @@ void hci_conn_del_sysfs(struct hci_conn *conn) return; } - /* If there are devices using the connection as parent reset it to NULL - * before unregistering the device. - */ - while (1) { - struct device *dev; - - dev = device_find_any_child(&conn->dev); - if (!dev) - break; - device_move(dev, NULL, DPM_ORDER_DEV_LAST); - put_device(dev); - } - device_unregister(&conn->dev); }