Skip to content

Commit

Permalink
PCI: histb: Drop unnecessary root_bus_nr setting
Browse files Browse the repository at this point in the history
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]>
Cc: Jianguo Sun <[email protected]>
  • Loading branch information
shawnguo2 authored and Lorenzo Pieralisi committed Jul 13, 2018
1 parent 3513f81 commit 73fb992
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/controller/dwc/pcie-histb.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ static int histb_pcie_probe(struct platform_device *pdev)
phy_init(hipcie->phy);
}

pp->root_bus_nr = -1;
pp->ops = &histb_pcie_host_ops;

platform_set_drvdata(pdev, hipcie);
Expand Down

0 comments on commit 73fb992

Please sign in to comment.