]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: dwc: Call devm_pci_alloc_host_bridge() early in dw_pcie_host_init()
authorFrank Li <Frank.Li@nxp.com>
Sat, 15 Mar 2025 20:15:38 +0000 (15:15 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Mar 2025 19:18:53 +0000 (14:18 -0500)
commit84f37c43d5fe3c71fbc72f37fb00c706650fc6a9
tree310e8d3ab13bc7bb4193dea7ec49c45162378423
parent513ef9c4965b0077037db97f8481d00b5c7ee994
PCI: dwc: Call devm_pci_alloc_host_bridge() early in dw_pcie_host_init()

Move devm_pci_alloc_host_bridge() to the beginning of dw_pcie_host_init().

devm_pci_alloc_host_bridge() is generic code that doesn't depend on any DWC
resource, so moving it earlier keeps all the subsequent devicetree-related
code together.

[bhelgaas: reorder earlier in series]

Link: https://lore.kernel.org/r/20250315201548.858189-4-helgaas@kernel.org
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-designware-host.c