Skip to content

Commit 083b0ac

Browse files
Philipp Stannerbjorn-helgaas
authored andcommitted
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]>
1 parent 4a6afd6 commit 083b0ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/pci/devres.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,14 @@ int pcim_request_all_regions(struct pci_dev *pdev, const char *name)
961961
EXPORT_SYMBOL(pcim_request_all_regions);
962962

963963
/**
964-
* pcim_iounmap_regions - Unmap and release PCI BARs
964+
* pcim_iounmap_regions - Unmap and release PCI BARs (DEPRECATED)
965965
* @pdev: PCI device to map IO resources for
966966
* @mask: Mask of BARs to unmap and release
967967
*
968968
* Unmap and release regions specified by @mask.
969+
*
970+
* This function is DEPRECATED. Do not use it in new code.
971+
* Use pcim_iounmap_region() instead.
969972
*/
970973
void pcim_iounmap_regions(struct pci_dev *pdev, int mask)
971974
{

0 commit comments

Comments
 (0)