Skip to content

Commit

Permalink
PCI: layerscape: Remove unused ls_add_pcie_port() platform_device arg
Browse files Browse the repository at this point in the history
ls_add_pcie_port() 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>
  • Loading branch information
Bjorn Helgaas committed Oct 12, 2016
1 parent fefe673 commit 4726a82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pci/host/pci-layerscape.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ static const struct of_device_id ls_pcie_of_match[] = {
{ },
};

static int __init ls_add_pcie_port(struct ls_pcie *pcie,
struct platform_device *pdev)
static int __init ls_add_pcie_port(struct ls_pcie *pcie)
{
struct pcie_port *pp = &pcie->pp;
struct device *dev = pp->dev;
Expand Down Expand Up @@ -263,7 +262,7 @@ static int __init ls_pcie_probe(struct platform_device *pdev)
if (!ls_pcie_is_bridge(pcie))
return -ENODEV;

ret = ls_add_pcie_port(pcie, pdev);
ret = ls_add_pcie_port(pcie);
if (ret < 0)
return ret;

Expand Down

0 comments on commit 4726a82

Please sign in to comment.