diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-07-01 11:54:48 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-07-13 14:08:58 +0100 |
commit | 3513f81816ef085c0068c8aea04b78b0a06a8720 (patch) | |
tree | d326f2b06caeca063f639d92d53e6124eb47c45b /drivers | |
parent | 84b88219553af870a47e28d6ba288bd6fbd129f7 (diff) | |
download | linux-3513f81816ef085c0068c8aea04b78b0a06a8720.tar.gz linux-3513f81816ef085c0068c8aea04b78b0a06a8720.tar.bz2 linux-3513f81816ef085c0068c8aea04b78b0a06a8720.zip |
PCI: designware-plat: 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: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Cc: Joao Pinto <Joao.Pinto@synopsys.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-designware-plat.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index 5937fed4c938..6e048c0b67f2 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -118,7 +118,6 @@ static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp); |