Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Philipp Stanner and committed by
Bjorn Helgaas
083b0ac4 4a6afd60

+4 -1
+4 -1
drivers/pci/devres.c
··· 961 961 EXPORT_SYMBOL(pcim_request_all_regions); 962 962 963 963 /** 964 - * pcim_iounmap_regions - Unmap and release PCI BARs 964 + * pcim_iounmap_regions - Unmap and release PCI BARs (DEPRECATED) 965 965 * @pdev: PCI device to map IO resources for 966 966 * @mask: Mask of BARs to unmap and release 967 967 * 968 968 * 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. 969 972 */ 970 973 void pcim_iounmap_regions(struct pci_dev *pdev, int mask) 971 974 {