Skip to content

Commit 84b8821

Browse files
shawnguo2Lorenzo Pieralisi
authored andcommitted
PCI: artpec6: 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: Jesper Nilsson <[email protected]> Cc: Jesper Nilsson <[email protected]>
1 parent 53b801f commit 84b8821

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ static int artpec6_add_pcie_port(struct artpec6_pcie *artpec6_pcie,
399399
}
400400
}
401401

402-
pp->root_bus_nr = -1;
403402
pp->ops = &artpec6_pcie_host_ops;
404403

405404
ret = dw_pcie_host_init(pp);

0 commit comments

Comments
 (0)