> @@ -1658,7 +1660,6 @@ void dfl_fpga_feature_devs_remove(struct dfl_fpga_cdev *cdev) > > /* remove released ports */ > if (!device_is_registered(&port_dev->dev)) { > - dfl_id_free(fdata->type, port_dev->id); Also remove the braces. Thanks, Yilun > platform_device_put(port_dev); > }