]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: samsung: spdif: Convert to devm_ioremap_resource()
authorJihed Chaibi <jihed.chaibi.dev@gmail.com>
Tue, 24 Mar 2026 22:39:07 +0000 (23:39 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 30 Mar 2026 18:37:21 +0000 (19:37 +0100)
commitb81f63108250818ed17fc7df9fdf9a7fb84f3f69
tree951b28e005b099258dfb616aad409f001b8a63fc
parent2a740dc5892a0e90e32ddae4d0ece501ace2adfc
ASoC: samsung: spdif: Convert to devm_ioremap_resource()

Replace the open-coded request_mem_region() + ioremap() sequence with
devm_ioremap_resource(), which handles both the region claim and mapping
under devres lifetime management.

This eliminates the manual iounmap() and release_mem_region() calls in
the error path (err3/err4 labels) and in spdif_remove(), simplifying
the probe error handling.

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