]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Remove redundant set of request functions
authorPhilipp Stanner <phasta@kernel.org>
Mon, 19 May 2025 11:29:59 +0000 (13:29 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 20 May 2025 07:39:15 +0000 (07:39 +0000)
commitbcfc67157e413cbb41d363f8ee961a01130d0a73
tree1c5e356549ea3053e3891002063aa15c353543fc
parent85826c11e77bb8bd18fbdae9bd04e51b4711c6f7
PCI: Remove redundant set of request functions

When the demangling of the hybrid devres functions within PCI was
implemented, it was necessary to implement several PCI functions a
second time to avoid cyclic calls, since the hybrid functions in pci.c
call the managed functions in devres.c, which in turn can be directly
used outside of PCI and needed request infrastructure, too.

Therefore, __pcim_request_region_range(), __pci_release_region_range()
and wrappers around them were implemented.

The hybrid nature has recently been removed from all functions in pci.c.
Therefore, the functions in devres.c can now directly use their
counterparts in pci.c without causing a call-cycle.

Remove __pcim_request_region_range(), __pcim_request_region_range() and
the wrappers. Use the corresponding request functions from pci.c in
devres.c

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-7-phasta@kernel.org
drivers/pci/devres.c