ASoC: audio-graph-card2: Use cleanup.h instead of devm_kfree()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 3 Jul 2024 12:11:01 +0000 (14:11 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jul 2024 11:50:00 +0000 (12:50 +0100)
commitb39f7713ece62b2b0a3cfad7a75a0eb0ab71aa4e
treee55d0b4551f2be0d5978a6a3e1099274b022f5ce
parent5725c16af2678d334de0bcb85b42cfa50b32e04c
ASoC: audio-graph-card2: Use cleanup.h instead of devm_kfree()

Allocate the memory with scoped/cleanup.h, instead of devm interface, to
make the code more obvious that memory is not used outside this scope.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20240703-asoc-cleanup-h-v1-7-71219dfd0aef@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card2.c