aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2018-07-01 11:54:45 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-07-13 14:08:18 +0100
commit8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe (patch)
treeb14b7282470948471d9414844652494c50b7b610 /drivers/pci/controller/dwc/pci-keystone.c
parentPCI: imx6: Drop unnecessary root_bus_nr setting (diff)
downloadlinux-dev-8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe.tar.xz
linux-dev-8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe.zip
PCI: keystone: Drop unnecessary root_bus_nr setting
Function dw_pcie_host_init() already initializes the root_bus_nr field of 'struct pcie_port', so the -1 assignment prior to calling dw_pcie_host_init() in platform specific driver is not really needed. Drop it. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Murali Karicheri <m-karicheri2@ti.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
-rw-r--r--drivers/pci/controller/dwc/pci-keystone.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c
index 3722a5f31e5e..e88bd221fffe 100644
--- a/drivers/pci/controller/dwc/pci-keystone.c
+++ b/drivers/pci/controller/dwc/pci-keystone.c
@@ -347,7 +347,6 @@ static int __init ks_add_pcie_port(struct keystone_pcie *ks_pcie,
}
}
- pp->root_bus_nr = -1;
pp->ops = &keystone_pcie_host_ops;
ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np);
if (ret) {