summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-histb.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2018-07-01 11:54:49 +0800
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-07-13 14:09:47 +0100
commit73fb9924d26b835f67acedacfe032343c9ed4f06 (patch)
treec3aa151a03468fe23870ff348ef71f478c4580be /drivers/pci/controller/dwc/pcie-histb.c
parent3513f81816ef085c0068c8aea04b78b0a06a8720 (diff)
downloadlinux-stable-73fb9924d26b835f67acedacfe032343c9ed4f06.tar.gz
linux-stable-73fb9924d26b835f67acedacfe032343c9ed4f06.tar.bz2
linux-stable-73fb9924d26b835f67acedacfe032343c9ed4f06.zip
PCI: histb: 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: Jianguo Sun <sunjianguo1@huawei.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-histb.c')
-rw-r--r--drivers/pci/controller/dwc/pcie-histb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c
index 3611d6ce9a92..7b32e619b959 100644
--- a/drivers/pci/controller/dwc/pcie-histb.c
+++ b/drivers/pci/controller/dwc/pcie-histb.c
@@ -420,7 +420,6 @@ static int histb_pcie_probe(struct platform_device *pdev)
phy_init(hipcie->phy);
}
- pp->root_bus_nr = -1;
pp->ops = &histb_pcie_host_ops;
platform_set_drvdata(pdev, hipcie);