PCI: keystone: Drop unnecessary root_bus_nr setting
authorShawn Guo <shawn.guo@linaro.org>
Sun, 1 Jul 2018 03:54:45 +0000 (11:54 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 13 Jul 2018 13:08:18 +0000 (14:08 +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: Murali Karicheri <m-karicheri2@ti.com>
drivers/pci/controller/dwc/pci-keystone.c

index 3722a5f31e5e67eebfddc342c8f071cb7bde183a..e88bd221fffeabc856a67dc06f6a8676e8286858 100644 (file)
@@ -347,7 +347,6 @@ static int __init ks_add_pcie_port(struct keystone_pcie *ks_pcie,
                }
        }
 
-       pp->root_bus_nr = -1;
        pp->ops = &keystone_pcie_host_ops;
        ret = ks_dw_pcie_host_init(ks_pcie, ks_pcie->msi_intc_np);
        if (ret) {