diff options
author | Philipp Stanner <[email protected]> | 2024-10-16 11:49:05 +0200 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-11-07 07:10:02 -0600 |
commit | 083b0ac4f880e54ec7f6a611a899477bbfee9faf (patch) | |
tree | badc6b6209e8d4b8f5ffaa6581e2e35bdda288fb | |
parent | 4a6afd60733c75369680f4a40c82b7c8528f4a7a (diff) |
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/[email protected]
Signed-off-by: Philipp Stanner <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
-rw-r--r-- | drivers/pci/devres.c | 5 |
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) { |