summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-histb.c
diff options
context:
space:
mode:
authorShawn Guo2018-07-01 05:54:49 +0200
committerLorenzo Pieralisi2018-07-13 15:09:47 +0200
commit73fb9924d26b835f67acedacfe032343c9ed4f06 (patch)
treec3aa151a03468fe23870ff348ef71f478c4580be /drivers/pci/controller/dwc/pcie-histb.c
parentPCI: designware-plat: Drop unnecessary root_bus_nr setting (diff)
downloadkernel-qcow2-linux-73fb9924d26b835f67acedacfe032343c9ed4f06.tar.gz
kernel-qcow2-linux-73fb9924d26b835f67acedacfe032343c9ed4f06.tar.xz
kernel-qcow2-linux-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);