From: Shawn Guo Date: Sun, 1 Jul 2018 03:54:48 +0000 (+0800) Subject: PCI: designware-plat: Drop unnecessary root_bus_nr setting X-Git-Tag: v5.15~8213^2~5^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3513f81816ef085c0068c8aea04b78b0a06a8720;p=platform%2Fkernel%2Flinux-starfive.git PCI: designware-plat: 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 Signed-off-by: Lorenzo Pieralisi Acked-by: Gustavo Pimentel Cc: Joao Pinto --- diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index 5937fed..6e048c0 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -118,7 +118,6 @@ static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie, return pp->msi_irq; } - pp->root_bus_nr = -1; pp->ops = &dw_plat_pcie_host_ops; ret = dw_pcie_host_init(pp);