Skip to content

Commit

Permalink
PCI: rcar: Remove unused rcar_pcie_get_resources() platform_device arg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bjorn Helgaas committed Oct 12, 2016
1 parent d9c64c5 commit d0206f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pci/host/pcie-rcar.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie *pcie)
return err;
}

static int rcar_pcie_get_resources(struct platform_device *pdev,
struct rcar_pcie *pcie)
static int rcar_pcie_get_resources(struct rcar_pcie *pcie)
{
struct device *dev = pcie->dev;
struct resource res;
Expand Down Expand Up @@ -1141,7 +1140,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)

rcar_pcie_parse_request_of_pci_ranges(pcie);

err = rcar_pcie_get_resources(pdev, pcie);
err = rcar_pcie_get_resources(pcie);
if (err < 0) {
dev_err(dev, "failed to request resources: %d\n", err);
return err;
Expand Down

0 comments on commit d0206f2

Please sign in to comment.