diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-07-01 05:54:47 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-07-13 15:08:47 +0200 |
commit | 84b88219553af870a47e28d6ba288bd6fbd129f7 (patch) | |
tree | 4faf224cc8ef121f28a1438c19ccf2cc43c882f6 /drivers/pci/controller/dwc/pcie-artpec6.c | |
parent | PCI: armada8k: Drop unnecessary root_bus_nr setting (diff) | |
download | linux-84b88219553af870a47e28d6ba288bd6fbd129f7.tar.xz linux-84b88219553af870a47e28d6ba288bd6fbd129f7.zip |
PCI: artpec6: 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>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-artpec6.c')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-artpec6.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-artpec6.c b/drivers/pci/controller/dwc/pcie-artpec6.c index 321b56cfd5d0..128b182648b3 100644 --- a/drivers/pci/controller/dwc/pcie-artpec6.c +++ b/drivers/pci/controller/dwc/pcie-artpec6.c @@ -399,7 +399,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie, } } - pp->root_bus_nr = -1; pp->ops = &artpec6_pcie_host_ops; ret = dw_pcie_host_init(pp); |