]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: lpass-wsa-macro: Simplify with cleanup.h
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 1 Jul 2024 07:39:38 +0000 (09:39 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jul 2024 20:43:42 +0000 (21:43 +0100)
commit67820eb9f4895791da46df42ff7942dfc1353bb2
tree1656b13ba8dd02ddc38769388f9d73e0807b0e43
parentc72585d79249fb07ca3e3c91022e312d21f20f40
ASoC: codecs: lpass-wsa-macro: Simplify with cleanup.h

Driver's probe() has two allocations which are needed only within the
probe() itself - for devm_regmap_init_mmio().

Usage of devm interface is a bit misleading here, because these can be
freed right after each scope finishes.

This makes the code a bit more obvious and self documenting.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240701-b4-qcom-audio-lpass-codec-cleanups-v3-6-6d98d4dd1ef5@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-wsa-macro.c