From patchwork Wed Dec 20 02:57:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yang.guang5@zte.com.cn X-Patchwork-Id: 13499462 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE6A1BE58; Wed, 20 Dec 2023 02:57:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4Svys95x1rz8XrRB; Wed, 20 Dec 2023 10:57:17 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl2.zte.com.cn with SMTP id 3BK2v7Ji078029; Wed, 20 Dec 2023 10:57:07 +0800 (+08) (envelope-from yang.guang5@zte.com.cn) Received: from mapi (xaxapp03[null]) by mapi (Zmail) with MAPI id mid31; Wed, 20 Dec 2023 10:57:08 +0800 (CST) Date: Wed, 20 Dec 2023 10:57:08 +0800 (CST) X-Zmail-TransId: 2afb65825804ffffffff93b-ece67 X-Mailer: Zmail v1.0 Message-ID: <202312201057082362118@zte.com.cn> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , , , Subject: =?utf-8?q?=5BPATCH_linux-next=5D_ASoC=3A_soc-topology=3A_Switch_to_?= =?utf-8?q?use_dev=5Ferr=5Fprobe=28=29_helper?= X-MAIL: mse-fl2.zte.com.cn 3BK2v7Ji078029 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6582580D.000/4Svys95x1rz8XrRB From: Yang Guang dev_err() can be replace with dev_err_probe() which will check if error code is -EPROBE_DEFER. Signed-off-by: Chen Haonan --- sound/soc/soc-topology.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index ba4890991f0d..c0d40162aff2 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1736,8 +1736,7 @@ static int soc_tplg_fe_link_create(struct soc_tplg *tplg, ret = snd_soc_add_pcm_runtimes(tplg->comp->card, link, 1); if (ret < 0) { - if (ret != -EPROBE_DEFER) - dev_err(tplg->dev, "ASoC: adding FE link failed\n"); + dev_err_probe(tplg->dev, ret, "ASoC: adding FE link failed\n"); goto err; }