]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: ti: Cleanup locking code using guard() helpers
authorMark Brown <broonie@kernel.org>
Mon, 11 May 2026 00:58:51 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2026 00:58:51 +0000 (09:58 +0900)
commitf86caf5ff6a408efda76ee2c6183d8f450d064d4
treef2fba6daac3e7965a72225ab1f1493e2daeb76d2
parente3cc335cdcd5715427864791514c5d28a2ede884
parent822f67bc269d6c393a978fad9915a28ac272738f
ASoC: ti: Cleanup locking code using guard() helpers

phucduc.bui@gmail.com <phucduc.bui@gmail.com> says:

This series converts mutex and spinlock handling in TI ASoC drivers
to use guard() helpers.

Most patches are straightforward conversions to guard() helpers.
Two patches include minor cleanup changes in the process:

omap-dmic: Simplified omap_dmic_dai_startup() by removing the
temporary return variable and using a direct return path on error.

omap-mcbsp: Modernized omap_mcbsp_request() by using __free(kfree)
for memory management. This ensures that memory is always freed on
error paths after the spinlock is released, without needing manual
goto labels.

No behavior change intended.

Link: https://patch.msgid.link/20260508103837.138142-1-phucduc.bui@gmail.com
sound/soc/ti/j721e-evm.c