diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-07-01 06:54:43 +0300 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-07-13 16:07:47 +0300 |
commit | a0476b3a678b4145a993f56071989af39d5718fb (patch) | |
tree | b0b4ce76b24a9d4e463780baf53fc582bf61bf11 /drivers/pci/controller/dwc/pci-exynos.c | |
parent | 141cb3d4ee521eff45d0520327106ddfe0abe90a (diff) | |
download | linux-a0476b3a678b4145a993f56071989af39d5718fb.tar.xz |
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/controller/dwc/pci-exynos.c')
-rw-r--r-- | drivers/pci/controller/dwc/pci-exynos.c | 1 |
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); |