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

PCI: Remove pcim_request_region_exclusive()

pcim_request_region_exclusive() was only needed for redirecting the
relatively exotic exclusive request functions in pci.c in case of them
operating in managed mode.

The managed nature has been removed from those functions and no one else
uses pcim_request_region_exclusive().

Remove pcim_request_region_exclusive().

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lore.kernel.org/r/20250519112959.25487-5-phasta@kernel.org

authored by

Philipp Stanner and committed by
Krzysztof Wilczyński
8e998748 b4fb90fb

-20
-18
drivers/pci/devres.c
··· 853 853 EXPORT_SYMBOL(pcim_request_region); 854 854 855 855 /** 856 - * pcim_request_region_exclusive - Request a PCI BAR exclusively 857 - * @pdev: PCI device to request region for 858 - * @bar: Index of BAR to request 859 - * @name: Name of the driver requesting the resource 860 - * 861 - * Returns: 0 on success, a negative error code on failure. 862 - * 863 - * Request region specified by @bar exclusively. 864 - * 865 - * The region will automatically be released on driver detach. If desired, 866 - * release manually only with pcim_release_region(). 867 - */ 868 - int pcim_request_region_exclusive(struct pci_dev *pdev, int bar, const char *name) 869 - { 870 - return _pcim_request_region(pdev, bar, name, IORESOURCE_EXCLUSIVE); 871 - } 872 - 873 - /** 874 856 * pcim_release_region - Release a PCI BAR 875 857 * @pdev: PCI device to operate on 876 858 * @bar: Index of BAR to release
-2
drivers/pci/pci.h
··· 1060 1060 #endif 1061 1061 1062 1062 int pcim_intx(struct pci_dev *dev, int enable); 1063 - int pcim_request_region_exclusive(struct pci_dev *pdev, int bar, 1064 - const char *name); 1065 1063 1066 1064 /* 1067 1065 * Config Address for PCI Configuration Mechanism #1