From 947238c194c1d4e806b143f8ab716109fec684b5 Mon Sep 17 00:00:00 2001 From: syphyr Date: Tue, 6 Feb 2018 04:26:15 +0100 Subject: [PATCH] sound: soc: msm8952_rt5659: Handle defer while probing Change-Id: I67926b65799357f4a4b58d52f92bb5c486628c88 --- sound/soc/msm/msm8952_rt5659.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/msm/msm8952_rt5659.c b/sound/soc/msm/msm8952_rt5659.c index 4a1199c0632e..b26591c3c438 100644 --- a/sound/soc/msm/msm8952_rt5659.c +++ b/sound/soc/msm/msm8952_rt5659.c @@ -3473,8 +3473,9 @@ static int msm8952_rt5659_asoc_machine_probe(struct platform_device *pdev) ret = snd_soc_register_card(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); goto err; } dev_info(&pdev->dev, "Sound card %s registered\n", card->name);