summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-10-06 20:38:06 +0200
committerBjorn Helgaas <bhelgaas@google.com>2016-10-12 06:14:46 +0200
commit4726a8231eeca0fe6c7f685b6c3eb28e77af3d3b (patch)
treeeac22e1c9fa42d97a07ef9fe2a348f2bc7670d21 /drivers/pci
parentPCI: layerscape: Move struct pcie_port setup to probe function (diff)
downloadlinux-4726a8231eeca0fe6c7f685b6c3eb28e77af3d3b.tar.xz
linux-4726a8231eeca0fe6c7f685b6c3eb28e77af3d3b.zip
PCI: layerscape: Remove unused ls_add_pcie_port() platform_device arg
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pci-layerscape.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c
index 2d77104b5422..3a86c1a24610 100644
--- a/drivers/pci/host/pci-layerscape.c
+++ b/drivers/pci/host/pci-layerscape.c
@@ -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;
@@ -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;