Skip to content

Commit 53dd0c5

Browse files
shawnguo2Lorenzo Pieralisi
authored andcommitted
PCI: spear13xx: 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: Pratyush Anand <[email protected]>
1 parent 739cd35 commit 53dd0c5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pci/controller/dwc/pcie-spear13xx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ static int spear13xx_add_pcie_port(struct spear13xx_pcie *spear13xx_pcie,
210210
return ret;
211211
}
212212

213-
pp->root_bus_nr = -1;
214213
pp->ops = &spear13xx_pcie_host_ops;
215214

216215
ret = dw_pcie_host_init(pp);

0 commit comments

Comments
 (0)