Merge branch 'pci/controller/dwc-nxp-s32g'

* pci/controller/dwc-nxp-s32g:
  PCI: s32g: Skip Root Port removal during success
This commit is contained in:
Bjorn Helgaas 2026-02-06 17:09:36 -06:00
commit d375df113c

View File

@ -282,12 +282,12 @@ static int s32g_pcie_parse_ports(struct device *dev, struct s32g_pcie *s32g_pp)
ret = s32g_pcie_parse_port(s32g_pp, of_port);
if (ret)
goto err_port;
break;
}
err_port:
list_for_each_entry_safe(port, tmp, &s32g_pp->ports, list)
list_del(&port->list);
if (ret)
list_for_each_entry_safe(port, tmp, &s32g_pp->ports, list)
list_del(&port->list);
return ret;
}