PCI: histb: Drop unnecessary root_bus_nr setting
authorShawn Guo <shawn.guo@linaro.org>
Sun, 1 Jul 2018 03:54:49 +0000 (11:54 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 13 Jul 2018 13:09:47 +0000 (14:09 +0100)
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>
drivers/pci/controller/dwc/pcie-histb.c

index 3611d6ce9a92354d46d0b11fa6fe96d7c8185757..7b32e619b959c8697eb16287c9e7d547581d97fd 100644 (file)
@@ -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);