PCI: Make pcim_iounmap_region() a public function
authorPhilipp Stanner <pstanner@redhat.com>
Wed, 16 Oct 2024 09:49:04 +0000 (11:49 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Oct 2024 21:12:47 +0000 (16:12 -0500)
commit4a6afd60733c75369680f4a40c82b7c8528f4a7a
treedf0a7d1ceb80a7b410e2541573d2ab020c712a81
parent6d9c59212523e719a63575222f1cd1b0aca3da4f
PCI: Make pcim_iounmap_region() a public function

The function pcim_iounmap_regions() is problematic because it uses a
bitmask mechanism to release / iounmap multiple BARs at once. It, thus,
prevents getting rid of the problematic iomap table mechanism which was
deprecated in commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()").

pcim_iounmap_region() does not have that problem. Make it public as the
successor of pcim_iounmap_regions().

Link: https://lore.kernel.org/r/20241016094911.24818-3-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/devres.c
include/linux/pci.h