summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2018-07-01 11:54:43 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-07-13 14:07:47 +0100
commita0476b3a678b4145a993f56071989af39d5718fb (patch)
treeb0b4ce76b24a9d4e463780baf53fc582bf61bf11 /drivers/pci
parent141cb3d4ee521eff45d0520327106ddfe0abe90a (diff)
downloadlinux-stable-a0476b3a678b4145a993f56071989af39d5718fb.tar.gz
linux-stable-a0476b3a678b4145a993f56071989af39d5718fb.tar.bz2
linux-stable-a0476b3a678b4145a993f56071989af39d5718fb.zip
PCI: exynos: 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: Jingoo Han <jingoohan1@gmail.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/dwc/pci-exynos.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pci-exynos.c b/drivers/pci/controller/dwc/pci-exynos.c
index 4cc1e5df8c79..cee5f2f590e2 100644
--- a/drivers/pci/controller/dwc/pci-exynos.c
+++ b/drivers/pci/controller/dwc/pci-exynos.c
@@ -421,7 +421,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep,
}
}
- pp->root_bus_nr = -1;
pp->ops = &exynos_pcie_host_ops;
ret = dw_pcie_host_init(pp);