mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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
This commit is contained in:
parent
b4fb90fb93
commit
8e9987485d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user