PCI: Remove hybrid devres nature from request functions
authorPhilipp Stanner <phasta@kernel.org>
Mon, 19 May 2025 11:29:55 +0000 (13:29 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Mon, 19 May 2025 12:34:58 +0000 (12:34 +0000)
commit51f6aec99cb0493b6c288ba55bed2ef9fb6242ca
treedf8127349826d1e296343129e8da2d8d07a32ade
parent855c634930f04c21434fae9c41a7a7372b6ac879
PCI: Remove hybrid devres nature from request functions

All functions based on __pci_request_region() and its release counter
part support "hybrid mode", where the functions become managed if the
PCI device was enabled with pcim_enable_device().

Removing this undesirable feature requires to remove all users who
activated their device with that function and use one of the affected
request functions.

These users were:
ASoC
alsa
cardreader
cirrus
i2c
mmc
mtd
mtd
mxser
net
spi
vdpa
vmwgfx

all of which have been ported to always-managed pcim_ functions by now.

The hybrid nature can, thus, be removed from the aforementioned PCI
functions.

Remove all function guards and documentation in pci.c related to the
hybrid redirection. Adjust the visibility of pcim_release_region().

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