]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: Remove pcim_request_region_exclusive()
authorPhilipp Stanner <phasta@kernel.org>
Mon, 19 May 2025 11:29:57 +0000 (13:29 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 19 May 2025 12:35:15 +0000 (12:35 +0000)
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
drivers/pci/devres.c
drivers/pci/pci.h

index dde109095428a786bce3cfb97dd5f406bf6e5fc5..9f74cfd025fce9211d811e8747c68cd84fc59a44 100644 (file)
@@ -852,24 +852,6 @@ int pcim_request_region(struct pci_dev *pdev, int bar, const char *name)
 }
 EXPORT_SYMBOL(pcim_request_region);
 
-/**
- * pcim_request_region_exclusive - Request a PCI BAR exclusively
- * @pdev: PCI device to request region for
- * @bar: Index of BAR to request
- * @name: Name of the driver requesting the resource
- *
- * Returns: 0 on success, a negative error code on failure.
- *
- * Request region specified by @bar exclusively.
- *
- * The region will automatically be released on driver detach. If desired,
- * release manually only with pcim_release_region().
- */
-int pcim_request_region_exclusive(struct pci_dev *pdev, int bar, const char *name)
-{
-       return _pcim_request_region(pdev, bar, name, IORESOURCE_EXCLUSIVE);
-}
-
 /**
  * pcim_release_region - Release a PCI BAR
  * @pdev: PCI device to operate on
index 8c3e5fb2443a520050fadc0b075c86562c8ba029..cfc9e71a4d8419905759e361ab434a369a1e8b6b 100644 (file)
@@ -1060,8 +1060,6 @@ static inline pci_power_t mid_pci_get_power_state(struct pci_dev *pdev)
 #endif
 
 int pcim_intx(struct pci_dev *dev, int enable);
-int pcim_request_region_exclusive(struct pci_dev *pdev, int bar,
-                                 const char *name);
 
 /*
  * Config Address for PCI Configuration Mechanism #1