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>
This commit is contained in:
Bjorn Helgaas 2016-10-06 13:38:06 -05:00
Родитель fefe6733e5
Коммит 4726a8231e
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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, static int __init ls_add_pcie_port(struct ls_pcie *pcie)
struct platform_device *pdev)
{ {
struct pcie_port *pp = &pcie->pp; struct pcie_port *pp = &pcie->pp;
struct device *dev = pp->dev; 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)) if (!ls_pcie_is_bridge(pcie))
return -ENODEV; return -ENODEV;
ret = ls_add_pcie_port(pcie, pdev); ret = ls_add_pcie_port(pcie);
if (ret < 0) if (ret < 0)
return ret; return ret;