]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: of: Simplify devm_of_pci_get_host_bridge_resources() interface
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 13 Jan 2025 23:15:56 +0000 (17:15 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2025 21:26:51 +0000 (15:26 -0600)
commitbbaa022917fcddad078cdef1f97a2ccdb6ce80de
tree252a9465ff8b4271c81cd5e5bfbdd8436df5a04e
parentadda86bf46440105e2459814a1284ea63a2b7032
PCI: of: Simplify devm_of_pci_get_host_bridge_resources() interface

Previously pci_parse_request_of_pci_ranges() supplied the default bus range
to devm_of_pci_get_host_bridge_resources(), but that function is static and
has no other callers, so there's no reason to complicate its interface by
passing the default bus range.

Drop the busno and bus_max parameters and use 0x0 and 0xff directly in
devm_of_pci_get_host_bridge_resources().

Link: https://lore.kernel.org/r/20250113231557.441289-4-helgaas@kernel.org
[bhelgaas: dev_warn() for invalid end of bus-range]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/of.c