]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: fsl: mpc5200_dma: Convert to devm_ioremap()
authorJihed Chaibi <jihed.chaibi.dev@gmail.com>
Tue, 24 Mar 2026 22:45:30 +0000 (23:45 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Mar 2026 13:42:07 +0000 (13:42 +0000)
commit3b6f4cfc7152feb5641678ea254988fdce70a91b
treefbadb92b8cb9bdf2dee4e292adb05ba7c4afd0b9
parente113ed3e73b91194a39bf6a9207a3598827f0033
ASoC: fsl: mpc5200_dma: Convert to devm_ioremap()

Replace ioremap() with devm_ioremap() so the mapping is released
automatically when the device is unbound. Remove the corresponding
iounmap() calls from the error path in mpc5200_audio_dma_create() and
from mpc5200_audio_dma_destroy().

Since devm_ioremap() failure already returns directly and no other
cleanup is needed at that point, simplify the kzalloc error path to
return -ENOMEM directly instead of jumping to the now-removed out_unmap
label.

Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Link: https://patch.msgid.link/20260324224530.102164-1-jihed.chaibi.dev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/mpc5200_dma.c