Commit d8eca4c9 authored by Federico Vaga's avatar Federico Vaga

sw:drv: remove FPGA devices only when they have been loaded

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 46b97b4e
......@@ -789,6 +789,9 @@ int spec_fpga_exit(struct spec_gn412x *spec_gn412x)
{
struct spec_fpga *spec_fpga = spec_gn412x->spec_fpga;
if (!spec_fpga_is_valid(spec_gn412x, spec_fpga->meta))
return 0;
debugfs_remove_recursive(spec_fpga->dbg_dir_fpga);
spec_fpga_app_exit(spec_fpga);
spec_fmc_exit(spec_fpga);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment