summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-01-17 13:48:55 -0200
committerMark Brown <broonie@kernel.org>2018-01-18 10:59:07 +0000
commitd04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2 (patch)
tree1f624f4bac76b1c55be2bed5750dbca27c3262e5 /sound
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
downloadop-kernel-dev-d04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2.zip
op-kernel-dev-d04c413f2ab3aa5998bf86f7a2f6235ed82b2ee2.tar.gz
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')
-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 2ed3240..5a871f2 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;
}
OpenPOWER on IntegriCloud