Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2905179imu; Fri, 18 Jan 2019 01:09:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4QLdNfSTWCNSjJ7yHnLkY1wuVzgylmNoDzJsDA9zOadkkUlCxyAGezHKBCd3j1TD+KI/gz X-Received: by 2002:a62:ae04:: with SMTP id q4mr18588957pff.126.1547802571984; Fri, 18 Jan 2019 01:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547802571; cv=none; d=google.com; s=arc-20160816; b=ZcxZp/Tvfl7w0ArwgUTXC4utY83KVDSS+5gpz+0nX7IkfQlle9uk3ocp0Az5AjDbi0 DUicaUwFhaDeTx3SGrzu+9scdd4QE96qFwEUcZf+wOZ7Uwe9fGMEvSOBIfuycgSZoVmr CcFDvGVVAdj4GppWr8mNZbKHXcptmW/KZ4HaeUBJhXXWdfYqs58fIHgxfePXJthMOKKR PZSIk0uPVIJ5+L6Q1XTob9oQgYNSCco2RIPaTau+PnPeBd5YGhvuWioSslrSh8kDqcLi X3fh84rle89glsTZDtmv+yteFx6HNpakWCK8SoaXJcOu2FGUM/xkyXnPEVbISk+Kfl2u QkXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wAjQY09vPKKAS9rjlvhV6GW6POVBwIAT458scdZPGYc=; b=az1e7YZgH3JCGPH419kG166SP4nDqAwj89Dae0ZZVcGAd8mYr8mz7Rvu70GT1Kp509 jyxI68KZGWKxy32F2NP8+CRCuj5J04bz+v65WQf5LDdTP7vrsardM0g0Re86XOD4YV0f U3LnB6yZVAAJkZcXW1bzYlPalDRGZby00VvhjEugMLyzvDkyWsbPyzTZYhr24y/aMvdA 7ahNL5Q0izX8MkJ3yNS5YiapYTVC+/WIufuK2ztLW4KrYCimYaWO4dkGEDe1YNvNi331 +L46Vh14GZYRYMEROz++ijGJPdUzVPDQ+pQSRGk48koRIXnyNaL6nDHpvuN+s8hB3Pwi FWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ZyZCWPJH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q140si4872398pfc.20.2019.01.18.01.09.16; Fri, 18 Jan 2019 01:09:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ZyZCWPJH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727178AbfARJHW (ORCPT + 99 others); Fri, 18 Jan 2019 04:07:22 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:33850 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfARJHB (ORCPT ); Fri, 18 Jan 2019 04:07:01 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 94C765C2722; Fri, 18 Jan 2019 10:06:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547802419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wAjQY09vPKKAS9rjlvhV6GW6POVBwIAT458scdZPGYc=; b=ZyZCWPJHaT5VJ9dEknE4YtGqGSIoUsCj6B/Gifuykj4de0ogDBfnV1E7OS2cc4ekg5e5Id i0CmfrPz9ENKtMV2ymfgPt3uoMwn38FX/khTnorycAKHMQN6vFIbpSexix6Z2Frb8+Kp7l VCTTZI9yr5ZVrFCCI0zNUNCWftsDRgk= From: Stefan Agner To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com Cc: fabio.estevam@nxp.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stefan Agner , Daniel Baluta Subject: [PATCH v2 3/5] ASoC: imx-sgtl5000: don't print EPROBE_DEFER as error Date: Fri, 18 Jan 2019 10:06:54 +0100 Message-Id: <20190118090656.14201-3-stefan@agner.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190118090656.14201-1-stefan@agner.ch> References: <20190118090656.14201-1-stefan@agner.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Probe deferral is to be expected during normal operation, so avoid printing an error when it is encountered. Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta Acked-by: Nicolin Chen --- sound/soc/fsl/imx-sgtl5000.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 9790a2a8ec2d..b6cb80480b60 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -157,7 +157,9 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, &data->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); goto fail; } -- 2.20.1