diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-19 17:10:54 -0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-30 14:00:30 +0100 |
| commit | 596f78db19528b8007fe5515d479babdc99c8455 (patch) | |
| tree | 5e76d787a304d1b8458b9e3fd51b785f6d2e7abc /tools/perf/scripts/python/flamegraph.py | |
| parent | ef9c8eb307046afa797befd84e6c741cd8954dfc (diff) | |
ASoC: amd: acp: Use pcim_iomap_region() in acp-pci
Convert acp-pci to the pcim-managed PCI life-cycle. Replace
pci_enable_device() with pcim_enable_device() and fold the
open-coded pci_request_regions() + devm_ioremap() pair into a single
pcim_iomap_region() call for BAR0, which reserves and iomaps the
register window.
This lets the driver drop the manual pci_release_regions() and
pci_disable_device() calls from the probe error path; pcim releases
the device and region automatically on detach or probe failure. The
error check moves from a NULL test to IS_ERR(), since pcim_iomap_region()
returns an IOMEM_ERR_PTR on failure.
The child platform devices only use devm_ioremap() on their sub-range
of BAR0 (no request_mem_region), so reserving the full BAR0 here does
not conflict with them.
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260720001054.1439409-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
