summaryrefslogtreecommitdiff
path: root/sound/soc/amd/acp3x-rt5682-max9836.c
diff options
context:
space:
mode:
authorAkshu Agrawal <akshu.agrawal@amd.com>2020-08-26 21:54:20 +0300
committerMark Brown <broonie@kernel.org>2020-08-27 16:43:23 +0300
commitf7660445c8e7fda91e8b944128554249d886b1d4 (patch)
tree8d53dc251128a66f50a4f0543fc8169907ebd09e /sound/soc/amd/acp3x-rt5682-max9836.c
parentcd0f9228c778316c4169d1e03413a2ea4b62e46f (diff)
downloadlinux-f7660445c8e7fda91e8b944128554249d886b1d4.tar.xz
ASoC: AMD: Clean kernel log from deferred probe error messages
While the driver waits for DAIs to be probed and retries probing, have the error messages at debug level instead of error. Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> Link: https://lore.kernel.org/r/20200826185454.5545-1-akshu.agrawal@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp3x-rt5682-max9836.c')
-rw-r--r--sound/soc/amd/acp3x-rt5682-max9836.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 406526e79af3..1a4e8ca0f99c 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -472,12 +472,17 @@ static int acp3x_probe(struct platform_device *pdev)
ret = devm_snd_soc_register_card(&pdev->dev, card);
if (ret) {
- dev_err(&pdev->dev,
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev,
"devm_snd_soc_register_card(%s) failed: %d\n",
card->name, ret);
- return ret;
+ else
+ dev_dbg(&pdev->dev,
+ "devm_snd_soc_register_card(%s) probe deferred: %d\n",
+ card->name, ret);
}
- return 0;
+
+ return ret;
}
static const struct acpi_device_id acp3x_audio_acpi_match[] = {