aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/pci/devres.c
diff options
context:
space:
mode:
authorPhilipp Stanner <pstanner@redhat.com>2024-10-16 11:49:05 +0200
committerBjorn Helgaas <bhelgaas@google.com>2024-11-07 07:10:02 -0600
commit083b0ac4f880e54ec7f6a611a899477bbfee9faf (patch)
treebadc6b6209e8d4b8f5ffaa6581e2e35bdda288fb /drivers/pci/devres.c
parentPCI: Make pcim_iounmap_region() a public function (diff)
downloadwireguard-linux-083b0ac4f880e54ec7f6a611a899477bbfee9faf.tar.xz
wireguard-linux-083b0ac4f880e54ec7f6a611a899477bbfee9faf.zip
PCI: Deprecate pcim_iounmap_regions()
pcim_ioumap_region() has recently been made a public function and does not have the disadvantage of having to deal with the legacy iomap table, as pcim_iounmap_regions() does. Deprecate pcim_iounmap_regions(). Link: https://lore.kernel.org/r/20241016094911.24818-4-pstanner@redhat.com Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/devres.c')
-rw-r--r--drivers/pci/devres.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/devres.c b/drivers/pci/devres.c
index fc50d2456aed..3b59a86a764b 100644
--- a/drivers/pci/devres.c
+++ b/drivers/pci/devres.c
@@ -961,11 +961,14 @@ err:
EXPORT_SYMBOL(pcim_request_all_regions);
/**
- * pcim_iounmap_regions - Unmap and release PCI BARs
+ * pcim_iounmap_regions - Unmap and release PCI BARs (DEPRECATED)
* @pdev: PCI device to map IO resources for
* @mask: Mask of BARs to unmap and release
*
* Unmap and release regions specified by @mask.
+ *
+ * This function is DEPRECATED. Do not use it in new code.
+ * Use pcim_iounmap_region() instead.
*/
void pcim_iounmap_regions(struct pci_dev *pdev, int mask)
{