[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1624324395-7260-1-git-send-email-shengjiu.wang@nxp.com>
Date: Tue, 22 Jun 2021 09:13:15 +0800
From: Shengjiu Wang <shengjiu.wang@....com>
To: timur@...nel.org, nicoleotsuka@...il.com, Xiubo.Lee@...il.com,
festevam@...il.com, broonie@...nel.org, perex@...ex.cz,
tiwai@...e.com, alsa-devel@...a-project.org
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: [RESEND PATCH v2] ASoC: fsl-asoc-card: change dev_err to dev_err_probe for defer probe
Don't need to print error message for defer probe
Signed-off-by: Shengjiu Wang <shengjiu.wang@....com>
---
changes in v2:
- use dev_err_probe instead of dev_dbg
sound/soc/fsl/fsl-asoc-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 121e08c2af2a..24c890d76da0 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -708,8 +708,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
of_node_put(framemaster);
if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
- dev_err(&pdev->dev, "failed to find codec device\n");
ret = -EPROBE_DEFER;
+ dev_err_probe(&pdev->dev, ret, "failed to find codec device\n");
goto asrc_fail;
}
--
2.27.0
Powered by blists - more mailing lists