Skip to content

Commit 739cd35

Browse files
shawnguo2Lorenzo Pieralisi
authored andcommitted
PCI: qcom: 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: Stanimir Varbanov <[email protected]>
1 parent 73fb992 commit 739cd35

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,6 @@ static int qcom_pcie_probe(struct platform_device *pdev)
12511251
if (ret)
12521252
return ret;
12531253

1254-
pp->root_bus_nr = -1;
12551254
pp->ops = &qcom_pcie_dw_ops;
12561255

12571256
if (IS_ENABLED(CONFIG_PCI_MSI)) {

0 commit comments

Comments
 (0)