Skip to content

Commit

Permalink
PCI: exynos: 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: Jingoo Han <[email protected]>
  • Loading branch information
shawnguo2 authored and Lorenzo Pieralisi committed Jul 13, 2018
1 parent 141cb3d commit a0476b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/controller/dwc/pci-exynos.c
Original file line number Diff line number Diff line change
@@ -421,7 +421,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep,
}
}

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

ret = dw_pcie_host_init(pp);

0 comments on commit a0476b3

Please sign in to comment.