diff options
| author | Shawn Guo <[email protected]> | 2018-07-01 03:54:47 +0000 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2018-07-13 13:08:47 +0000 |
| commit | 84b88219553af870a47e28d6ba288bd6fbd129f7 (patch) | |
| tree | 4faf224cc8ef121f28a1438c19ccf2cc43c882f6 /drivers/pci/controller/dwc | |
| parent | PCI: armada8k: Drop unnecessary root_bus_nr setting (diff) | |
| download | kernel-84b88219553af870a47e28d6ba288bd6fbd129f7.tar.gz kernel-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 <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Jesper Nilsson <[email protected]>
Cc: Jesper Nilsson <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
| -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); |
