summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller
diff options
context:
space:
mode:
authorShawn Guo2018-07-01 05:54:45 +0200
committerLorenzo Pieralisi2018-07-13 15:08:18 +0200
commit8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe (patch)
treeb14b7282470948471d9414844652494c50b7b610 /drivers/pci/controller
parentPCI: imx6: Drop unnecessary root_bus_nr setting (diff)
downloadkernel-qcow2-linux-8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe.tar.gz
kernel-qcow2-linux-8519bc8fe88fbe5c1e448ae1dd1ba215a1723abe.tar.xz
kernel-qcow2-linux-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')
-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) {