Skip to content

Commit 8e99874

Browse files
Philipp Stannerkwilczynski
authored andcommitted
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 <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b4fb90f commit 8e99874

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

drivers/pci/devres.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -852,24 +852,6 @@ int pcim_request_region(struct pci_dev *pdev, int bar, const char *name)
852852
}
853853
EXPORT_SYMBOL(pcim_request_region);
854854

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-
873855
/**
874856
* pcim_release_region - Release a PCI BAR
875857
* @pdev: PCI device to operate on

drivers/pci/pci.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,8 +1060,6 @@ static inline pci_power_t mid_pci_get_power_state(struct pci_dev *pdev)
10601060
#endif
10611061

10621062
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);
10651063

10661064
/*
10671065
* Config Address for PCI Configuration Mechanism #1

0 commit comments

Comments
 (0)