ASoC: codecs: wcd934x: Simplify with dev_err_probe
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 18 Apr 2023 07:46:28 +0000 (09:46 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 18 Apr 2023 13:02:22 +0000 (14:02 +0100)
commitfa92f4294283cc7d1f29151420be9e9336182518
tree8cae1b063835f59a4fc28065c290eca8a54adac4
parent3da9d149eb9f51560163bb0c13a245fd0ba74c6e
ASoC: codecs: wcd934x: Simplify with dev_err_probe

Replace dev_err() in probe() path with dev_err_probe() to:
1. Make code a bit simpler and easier to read,
2. Do not print messages on deferred probe.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230418074630.8681-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd934x.c