- devcnt = g_slist_length(drvc->instances);
- if (!(sdi = sr_dev_inst_new(devcnt, SR_ST_INACTIVE,
- VICTOR_VENDOR, NULL, NULL)))
- return NULL;
+ usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+
+ sdi = sr_dev_inst_new();
+ sdi->status = SR_ST_INACTIVE;
+ sdi->vendor = g_strdup(VICTOR_VENDOR);