From: Philipp Stanner Date: Wed, 16 Oct 2024 09:49:05 +0000 (+0200) Subject: PCI: Deprecate pcim_iounmap_regions() X-Git-Tag: microblaze-v6.16~472^2~29^2~3 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=083b0ac4f880e54ec7f6a611a899477bbfee9faf;p=linux-2.6-microblaze.git 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 Signed-off-by: Bjorn Helgaas --- 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) {