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@xxxxxxxxxx> --- drivers/pci/host/pcie-rcar.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index c28ac93..5a8969f 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -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;