Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp197498pxb; Wed, 25 Aug 2021 00:39:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxehK4PrtTY1kgmFI3T2bWuAYa82dstSOxrqgZFJhe9dA+3ai3UZ99pNM2txciR3bmf80PU X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr44552363ejf.416.1629877187465; Wed, 25 Aug 2021 00:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629877187; cv=none; d=google.com; s=arc-20160816; b=KDDQyBeEoDJNFXjz93wOyFLu8Ori9G6PabSWSAfjjDUBY0I6NnGkNz68Upwme/TUf4 D4JlVfRqRr5P1rLSctybgmMDj2CGyLM5lOG/VZ5WbhyzWpJl4Vc1cMVHkXH62Jp/NEU9 qi5dYDrfXicOLQxLl7AYHlxYQb66332GbimNwTZ2IkHIqWSlEAZI1Y33JvTYTfUwL31Q HazVlvbFlTcAn1VZNE47elDQjtS9IRkCXguKLpJ/t/HADcXRSe+LAa5o4FNrnXOglCmJ +k/SEZi5JsP9rgoz/0QpMWAsIibAhrmMsNuBoY7ecGHmMEZDK2nMKptVGyOYa/gIQ2Zh 2jhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Zm2M5bL6qS0Wb85BQbB1bt+PT8rJoKzC0bWtlxw6MVo=; b=BIn2apqGq6Nwa49IsFjQlXt7qJd/ltNFbo6pGZJZ37pGgmtjSnmVKpKh87zivq3cUn yEdk94HMPDl8Ls3wzayPfnjf69ZDTM59jQCxjhyS8i9hvpeKPseWbAQMEXmOjeXCFNGx rp+P3o0yf2ecNSe9uiyut1k6iXMth6voMz8BEgJl0tsEkXl3ua/LBLX1MCCJnp5+TOAW +3Rv74/s3v/m/pqigP6t8TNyjmppyTwCvr3BiRXEc1VBr+haZ1KciB9f6lWXD8Loxr/E /Y2ml7nMjNV1B63DIk+HYgot3wwYQ2AAtFBTC2WQG+9GDqhngbNGWb2q+PugEvNZdDSC 3i9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg33si10213441ejc.212.2021.08.25.00.39.23; Wed, 25 Aug 2021 00:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239131AbhHYHhp (ORCPT + 99 others); Wed, 25 Aug 2021 03:37:45 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38874 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238651AbhHYHho (ORCPT ); Wed, 25 Aug 2021 03:37:44 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7DCCD200ACB; Wed, 25 Aug 2021 09:36:57 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4609F20262C; Wed, 25 Aug 2021 09:36:57 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id A4006183AC72; Wed, 25 Aug 2021 15:36:52 +0800 (+08) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: imx-rpmsg: change dev_err to dev_err_probe for -EPROBE_DEFER Date: Wed, 25 Aug 2021 15:14:41 +0800 Message-Id: <1629875681-16373-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change dev_err to dev_err_probe for no need print error message when defer probe happens. Fixes: 39f8405c3e50 ("ASoC: imx-rpmsg: Add machine driver for audio base on rpmsg") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-rpmsg.c b/sound/soc/fsl/imx-rpmsg.c index f0cae8c59d54..f96fe4ff8425 100644 --- a/sound/soc/fsl/imx-rpmsg.c +++ b/sound/soc/fsl/imx-rpmsg.c @@ -125,7 +125,7 @@ static int imx_rpmsg_probe(struct platform_device *pdev) snd_soc_card_set_drvdata(&data->card, data); ret = devm_snd_soc_register_card(&pdev->dev, &data->card); if (ret) { - dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); + dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); goto fail; } -- 2.17.1