diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2018-07-01 11:54:50 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-07-13 14:10:38 +0100 |
commit | 739cd35918b7cf495ea2d7abb2ff6ee97605f41d (patch) | |
tree | bbdeb28405bd336248775b76f3773b8053c72c9a /drivers/pci/controller | |
parent | 73fb9924d26b835f67acedacfe032343c9ed4f06 (diff) | |
download | linux-stable-739cd35918b7cf495ea2d7abb2ff6ee97605f41d.tar.gz linux-stable-739cd35918b7cf495ea2d7abb2ff6ee97605f41d.tar.bz2 linux-stable-739cd35918b7cf495ea2d7abb2ff6ee97605f41d.zip |
PCI: qcom: 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: Stanimir Varbanov <svarbanov@mm-sol.com>
Diffstat (limited to 'drivers/pci/controller')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-qcom.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index a1d0198081a6..4352c1cb926d 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1251,7 +1251,6 @@ static int qcom_pcie_probe(struct platform_device *pdev) if (ret) return ret; - pp->root_bus_nr = -1; pp->ops = &qcom_pcie_dw_ops; if (IS_ENABLED(CONFIG_PCI_MSI)) { |