]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: wcd939x-sdw: use devres for regmap allocation
authorJohan Hovold <johan@kernel.org>
Mon, 1 Dec 2025 09:22:59 +0000 (10:22 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Dec 2025 15:32:43 +0000 (15:32 +0000)
commit7a8447fc71a09000cee5a2372b6efde45735d2c8
treebb50516af43102d8b72159c5ff432e845ee0e3f9
parent3622dc47a4b13e0ec86358c7b54a0b33bfcaa03c
ASoC: codecs: wcd939x-sdw: use devres for regmap allocation

Components are bound inside a new devres group so that any resources
allocated can be released on bind failure and on unbind without
affecting anything else.

Switch to using device managed regmap allocation for consistency while
dropping the misleading comment claiming that devres cannot be used.

Cc: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251201092259.11761-1-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd939x-sdw.c