]> 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 08:57:57 +0000 (10:57 +0200)
commitdc41702606419cdd717b53cf113c85122ffc5609
tree65882f6fb6a0412bd712cf8d75ca526ff7944d7c
parentb89ff9cf37ff59399f850d5f7781ef78fc37679f
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