From: Fabio Estevam Subject: [PATCH v2 2/2] ASoC: mxs-sgtl5000: Do not print error on probe deferral Date: Wed, 17 Jan 2018 13:48:55 -0200 Message-ID: <1516204135-11200-2-git-send-email-fabio.estevam@nxp.com> References: <1516204135-11200-1-git-send-email-fabio.estevam@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0046.outbound.protection.outlook.com [104.47.32.46]) by alsa0.perex.cz (Postfix) with ESMTP id D4D70266E7C for ; Wed, 17 Jan 2018 16:49:09 +0100 (CET) In-Reply-To: <1516204135-11200-1-git-send-email-fabio.estevam@nxp.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: broonie@kernel.org Cc: Fabio Estevam , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Probe deferral may happen, so do not print an error message in this case. Signed-off-by: Fabio Estevam --- Changes since v1: - None sound/soc/mxs/mxs-sgtl5000.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c index b593f76..2b3f240 100644 --- a/sound/soc/mxs/mxs-sgtl5000.c +++ b/sound/soc/mxs/mxs-sgtl5000.c @@ -163,8 +163,9 @@ static int mxs_sgtl5000_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { - dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", - ret); + if (ret != -EPROBE_DEFER) + dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", + ret); return ret; } -- 2.7.4