ASoC: wm8524: Do not print probe defer error
authorFabio Estevam <festevam@gmail.com>
Mon, 1 Mar 2021 19:33:28 +0000 (16:33 -0300)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:08:48 +0000 (13:08 +0000)
commitee00e0bf7e4fe6c253219680b339add32686efee
tree7ae87906ae42908bfeff3772e35e209a02d715a0
parent7810ea4c8f74ff904ac1ea06dde9201af566d679
ASoC: wm8524: Do not print probe defer error

On an imx8mq-evk the following error is seen:

[    1.375809] wm8524-codec audio-codec: Failed to get mute line: -517

It happens because the codec driver may probe prior to the imx gpio
driver, which causes a probe defer.

Change to dev_err_probe() to avoid printing this error.

Reported-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210301193328.2123511-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8524.c