Skip to content

Commit 7c9edab

Browse files
Akshu Agrawalgregkh
authored andcommitted
ASoC: AMD: Clean kernel log from deferred probe error messages
[ Upstream commit f766044 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 0d6d22f commit 7c9edab

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

sound/soc/amd/acp3x-rt5682-max9836.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,12 +472,17 @@ static int acp3x_probe(struct platform_device *pdev)
472472

473473
ret = devm_snd_soc_register_card(&pdev->dev, card);
474474
if (ret) {
475-
dev_err(&pdev->dev,
475+
if (ret != -EPROBE_DEFER)
476+
dev_err(&pdev->dev,
476477
"devm_snd_soc_register_card(%s) failed: %d\n",
477478
card->name, ret);
478-
return ret;
479+
else
480+
dev_dbg(&pdev->dev,
481+
"devm_snd_soc_register_card(%s) probe deferred: %d\n",
482+
card->name, ret);
479483
}
480-
return 0;
484+
485+
return ret;
481486
}
482487

483488
static const struct acpi_device_id acp3x_audio_acpi_match[] = {

0 commit comments

Comments
 (0)