diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-21 15:59:36 -0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-23 18:11:58 +0100 |
| commit | 3a065257412f612d4f3fe538003c4520d6e4e4c0 (patch) | |
| tree | 8c1f65525bde6097efc24dc94b3b5cb28161523d /tools/perf/scripts/python | |
| parent | 3629acb34c0fe7b5d2ec8cd9693c56ebf442f4cf (diff) | |
ASoC: fsl: mpc5200_dma: use platform helpers and devm cleanup
Convert mpc5200_audio_dma_create() to the managed APIs. Replace the
open-coded of_address_to_resource() + devm_ioremap() of the PSC registers
with devm_platform_get_and_ioremap_resource(), and irq_of_parse_and_map()
with platform_get_irq() (which returns a negative errno instead of 0).
Switch the allocation to devm_kzalloc(), the three interrupt requests to
devm_request_irq(), and drop the now-unneeded error-path cleanup and the
manual teardown in mpc5200_audio_dma_destroy().
The PSC register window is owned solely by this driver, so the new region
request from devm_platform_get_and_ioremap_resource() cannot conflict
with another claimant, and it is mapped exactly once (no double mapping).
The resource pointer is still used (res->start) to compute the FIFO
physical address.
No functional change; built for powerpc (allmodconfig + CONFIG_SND_SOC_MPC5200_DMA)
with LLVM=1 and sound/soc/fsl/mpc5200_dma.o compiles cleanly.
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260721225936.838299-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
