PCI: rcar: Remove unused rcar_pcie_get_resources() platform_device arg

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>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
Bjorn Helgaas 2016-10-06 13:40:27 -05:00
parent d9c64c500a
commit d0206f2121

View File

@ -903,8 +903,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie *pcie)
return err; return err;
} }
static int rcar_pcie_get_resources(struct platform_device *pdev, static int rcar_pcie_get_resources(struct rcar_pcie *pcie)
struct rcar_pcie *pcie)
{ {
struct device *dev = pcie->dev; struct device *dev = pcie->dev;
struct resource res; struct resource res;
@ -1141,7 +1140,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
rcar_pcie_parse_request_of_pci_ranges(pcie); rcar_pcie_parse_request_of_pci_ranges(pcie);
err = rcar_pcie_get_resources(pdev, pcie); err = rcar_pcie_get_resources(pcie);
if (err < 0) { if (err < 0) {
dev_err(dev, "failed to request resources: %d\n", err); dev_err(dev, "failed to request resources: %d\n", err);
return err; return err;