@@ -899,8 +899,7 @@ err:
return err;
}
-static int rcar_pcie_get_resources(struct platform_device *pdev,
- struct rcar_pcie *rcar)
+static int rcar_pcie_get_resources(struct rcar_pcie *rcar)
{
struct device *dev = rcar->dev;
struct resource res;
@@ -1133,7 +1132,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
rcar_pcie_parse_request_of_pci_ranges(rcar);
- err = rcar_pcie_get_resources(pdev, rcar);
+ err = rcar_pcie_get_resources(rcar);
if (err < 0) {
dev_err(dev, "failed to request resources: %d\n", err);
return err;
rcar_pcie_get_resources() doesn't use the platform_device pointer passed to it, so remove it. No functional change intended. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> --- drivers/pci/host/pcie-rcar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html