Skip to content

Commit 3513f81

Browse files
shawnguo2Lorenzo Pieralisi
authored andcommitted
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 <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Gustavo Pimentel <[email protected]> Cc: Joao Pinto <[email protected]>
1 parent 84b8821 commit 3513f81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pci/controller/dwc/pcie-designware-plat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ static int dw_plat_add_pcie_port(struct dw_plat_pcie *dw_plat_pcie,
118118
return pp->msi_irq;
119119
}
120120

121-
pp->root_bus_nr = -1;
122121
pp->ops = &dw_plat_pcie_host_ops;
123122

124123
ret = dw_pcie_host_init(pp);

0 commit comments

Comments
 (0)