ASoC: intel: atom: Use pure devres PCI
authorPhilipp Stanner <phasta@kernel.org>
Fri, 25 Apr 2025 08:17:42 +0000 (10:17 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 May 2025 10:32:12 +0000 (19:32 +0900)
commit938cabc603dc9b040fbfbf7c37b2b48dff8946d4
tree63c1bb50ec875c2a47776116147a7d3d561645b7
parent58fa9c629e29ae921d055c2b7a1e372ae991fb79
ASoC: intel: atom: Use pure devres PCI

pci_request_regions() is a hybrid function which becomes managed if
pcim_enable_device() was called before. This hybrid nature is deprecated
and should not be used anymore.

Replace pci_request_regions() with the always-managed function
pcim_request_all_regions().

Remove the call to pci_release_regions(), since pcim_ functions do
cleanup automatically.

Pass 0 as length parameter to pcim_iomap(), which is the standard way
for ioremapping an entire BAR.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20250425081742.61623-5-phasta@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_pci.c