forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/net/bluetooth/hci_sysfs.c
....@@ -48,6 +48,9 @@
4848
4949 BT_DBG("conn %p", conn);
5050
51
+ if (device_is_registered(&conn->dev))
52
+ return;
53
+
5154 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
5255
5356 if (device_add(&conn->dev) < 0) {