]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: codecs: wcd9335: Handle nicer probe deferral and simplify with dev_err_probe()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 12 Jun 2024 16:15:17 +0000 (18:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 09:00:09 +0000 (11:00 +0200)
commit99d69684228747b5f092ba593c769b5ef8de5d11
tree5d89b0549c742f6ff518e9b57c113d260168d83a
parent0c40fa81f850556e9aa0185fede9ef1112db7b39
ASoC: codecs: wcd9335: Handle nicer probe deferral and simplify with dev_err_probe()

[ Upstream commit 4a03b5dbad466c902d522f3405daa4e5d80578c5 ]

wcd9335_parse_dt() function is called only from probe(), so printing
errors on resource acquisition is discouraged, because it can pollute
dmesg.  Use dev_err_probe() to fix this and also make the code a bit
simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240612-asoc-wcd9xxx-wide-cleanups-v1-4-0d15885b2a06@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 9079db287fc3 ("ASoC: codecs: wcd9335: Fix missing free of regulator supplies")
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wcd9335.c