summaryrefslogtreecommitdiffstats
path: root/sound/soc/mxs
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-01-17 16:48:55 +0100
committerMark Brown <broonie@kernel.org>2018-01-18 11:59:07 +0100
commitd04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2 (patch)
tree1f624f4bac76b1c55be2bed5750dbca27c3262e5 /sound/soc/mxs
parentLinux 4.15-rc1 (diff)
downloadlinux-d04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2.tar.xz
linux-d04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2.zip
ASoC: mxs-sgtl5000: Do not print error on probe deferral
Probe deferral may happen, so do not print an error message in this case. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mxs')
-rw-r--r--sound/soc/mxs/mxs-sgtl5000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c
index 2ed3240cc682..5a871f25f438 100644
--- a/sound/soc/mxs/mxs-sgtl5000.c
+++ b/sound/soc/mxs/mxs-sgtl5000.c
@@ -143,8 +143,9 @@ static int mxs_sgtl5000_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, card);
if (ret) {
- dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
- ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
+ ret);
return ret;
}