Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1705512imu; Thu, 17 Jan 2019 01:47:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Zeogbv/NqTXBx75zcYObTayE9KnA5ak0JKGFmwBAHLAEYiN/EO+yy4TulC/zx+oKIOq9y X-Received: by 2002:a17:902:7c85:: with SMTP id y5mr14229020pll.63.1547718457529; Thu, 17 Jan 2019 01:47:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547718457; cv=none; d=google.com; s=arc-20160816; b=lSQHrz0VVJU5C6DvV59ThaB3KSH38is7yOn3GtOOKVIk5LniCbgU2CcCcAXIDjIwsW cE+aif/72n1kwIkD6yLNbxPf+2PaEvjBfDNBCpHiLsMuZPpGzFhVCWdKpHPSikXh9D6d A4WvX3XAAebUM45/FUyAa3e09pinqxVQ8IalGjmrcsIm4cHxkSCBNeUDlx4SQEST+G+d +Gx/OuQKsrlJFj5k503GkPOUv2/upUDm3cbpJtiy3qHhpauhar3N61EKh9xlC2dMn8nc A5qfXjN/cmBFXKZRTVkcVRdpSnPpMaIh7VRYyWJJVftwHMSPT6HHG2qipeqJlgM7sWFA x0bw== 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=LEoCFXoca1HDWOVmFMHoFLVKT5GDMunvfNZ6l5UPaD8=; b=zStQaImblPg0Da+N1yoHo/LoU0rk1YB7Z1O7pxfGWS1Nxn6UBO1k+BrchCRVieNPBi ADaMUqfiV3J6M/P5YRm9Vlq+OfW5tFcgGnBG4WRwhKeyIAOYG42xyh9XNpSYYeogUoHh tUi9GN9chMf36qyoxZs8zze0JBoEyr+wBkYRHbMgCs7z1OFq4/kpi2H7VWsbrQkD94Z+ qVNrb86Cl6G0HYqTF1HwHZHT5DFL3H/VDYyr45eESLB1m8aVKRZEu+ne7XDktFgBulGi O004ew90Hqgqfb6UQ2htGhokUSnz7eXcs3WQm32gszeCGk/390rS2nMWbfGe7deG3wMK K+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=hbYMQBdH; 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 z8si1194606pgf.577.2019.01.17.01.47.21; Thu, 17 Jan 2019 01:47:37 -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=hbYMQBdH; 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 S1728238AbfAQJHQ (ORCPT + 99 others); Thu, 17 Jan 2019 04:07:16 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:48926 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbfAQJGy (ORCPT ); Thu, 17 Jan 2019 04:06:54 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 535FD5C1E57; Thu, 17 Jan 2019 10:06:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547716012; 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=LEoCFXoca1HDWOVmFMHoFLVKT5GDMunvfNZ6l5UPaD8=; b=hbYMQBdHH8PgcnKlpzCj49xOttR8+MxYgHzysOfqqjmilYxiTCjBdiIRBKZmtthBeSaC3Q 2wmmi8AgShJWUNmS6Tx/GiVbBqLQmOJe7hxthqnReWudXdvoh6W3V3h4+sBB+Mhk9frKFa dtCpaoV6DXWhCBx64/v2cYAGiqj1x9w= 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 Subject: [PATCH 3/5] ASoC: imx-sgtl5000: don't print EPROBE_DEFER as error Date: Thu, 17 Jan 2019 10:06:38 +0100 Message-Id: <20190117090640.12972-3-stefan@agner.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190117090640.12972-1-stefan@agner.ch> References: <20190117090640.12972-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 --- 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 c29200cf755a..e1e20499b2f1 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -156,7 +156,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