|
@@ -72,12 +72,12 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev)
|
|
pcie->map_irq = of_irq_parse_and_map_pci;
|
|
pcie->map_irq = of_irq_parse_and_map_pci;
|
|
|
|
|
|
ret = iproc_pcie_setup(pcie, &res);
|
|
ret = iproc_pcie_setup(pcie, &res);
|
|
- if (ret) {
|
|
|
|
|
|
+ if (ret)
|
|
dev_err(pcie->dev, "PCIe controller setup failed\n");
|
|
dev_err(pcie->dev, "PCIe controller setup failed\n");
|
|
- return ret;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- return 0;
|
|
|
|
|
|
+ pci_free_resource_list(&res);
|
|
|
|
+
|
|
|
|
+ return ret;
|
|
}
|
|
}
|
|
|
|
|
|
static int iproc_pcie_pltfm_remove(struct platform_device *pdev)
|
|
static int iproc_pcie_pltfm_remove(struct platform_device *pdev)
|