diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-06-30 23:54:45 -0400 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-07-13 09:08:18 -0400 |
commit | 8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe (patch) | |
tree | b14b7282470948471d9414844652494c50b7b610 /drivers/pci/controller/dwc | |
parent | 39f712e989c5e591c58b65b62981b85027ba3103 (diff) |
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')
-rw-r--r-- | drivers/pci/controller/dwc/pci-keystone.c | 1 |
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, | |||
347 | } | 347 | } |
348 | } | 348 | } |
349 | 349 | ||
350 | pp->root_bus_nr = -1; | ||
351 | pp->ops = &keystone_pcie_host_ops; | 350 | pp->ops = &keystone_pcie_host_ops; |
352 | ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np); | 351 | ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np); |
353 | if (ret) { | 352 | if (ret) { |