Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2905097imu; Fri, 18 Jan 2019 01:09:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN5lLAgp0AJv3yyKMt1N2pFdFGcEclGefwHsBgjLBbsQ0PzoLvnH5SLrvH+An8cmcqKmoIif X-Received: by 2002:a63:441e:: with SMTP id r30mr17059851pga.128.1547802566612; Fri, 18 Jan 2019 01:09:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547802566; cv=none; d=google.com; s=arc-20160816; b=a3ig5PIGuzWBvARy5cJmpaite5s6WI2UrurHxqOXepYa6x7cW3/PVevWcZbkCtcmHu 49O7Hjt+nt3W18ODxVsxsJurS2XNnSrc5ZBnjykCZYQ+Wn1hGWdQpZ+EbFoXkZGj1Y3P Q1tc6ZA2+zCzwsXyHbTRVr6kPCbZRYK9UkRUWhoOWoSgGBaGT0uGJ83/KpNsYwRRhr4G 0QDwT1s/uJMUvAhOm0lsV+fYMWdzjkIM+yv7w2qC+ylEvw013mEaz5yCz0tv5+6aGCHz p07AuEYyijQtxb5XEPRlCVG+1ho8EXXIVlyhHZ/vIRdd9u0eEV+hb84MbPs93P9giRdd FqXQ== 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=PWO+y2NvmzDII8V5/g3zFJFn40YzrEFkPqtfEP5PK+o=; b=0GSvFFHf9aBTKgp7PtfVxzF3zE4VhT5/UKMCkEFpH7UiWJRSQHc2pqM52TL0sAKefL ebt/34a/m6rM39PQOuHKmvg11Zgy7lFUv+TePgj9CXjsQS1t5U9wFATHr/KhabCa4gDM WufnkPu8I4s0mmV7MzmvZCSQoma5csyxFE7dydArCMHRgXAbD277uRbYjXCGHfs9k5ol JQ0PSB2rlrIdsefS34MJPUzQO8VFtMQ3ZVYb6xyjAyJUteODb64SxkdY4wsI3XxERrca 10rvK70D/5NA2QEhM6uGNnbO1GwI2Zsju33LiCYhaZiUkTiQKeqWNC1rpTUcF7u/YgQM acEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=eV2Kt+jA; 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 10si4382958pfy.206.2019.01.18.01.09.11; Fri, 18 Jan 2019 01:09:26 -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=eV2Kt+jA; 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 S1727117AbfARJHP (ORCPT + 99 others); Fri, 18 Jan 2019 04:07:15 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:33876 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726854AbfARJHB (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 057B15C2728; Fri, 18 Jan 2019 10:07:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547802420; 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=PWO+y2NvmzDII8V5/g3zFJFn40YzrEFkPqtfEP5PK+o=; b=eV2Kt+jArqwUBZ/NcPHweYVDbnwMcckTc4FRNaLU0ecIYUI8Wz0Kv/j04ScMQ2G1uCaNjO sWyjbRZj+MuA9zIl7dFrFGAiA+LWrmS2/P3D/S3u3NAcVHu5Udk60syWZcb/N90RJpTeUw ME/CRj+7RaCbo60qVUPYreTjyCbYdjw= 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 5/5] ASoC: imx-spdif: don't print EPROBE_DEFER as error Date: Fri, 18 Jan 2019 10:06:56 +0100 Message-Id: <20190118090656.14201-5-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. Removing the goto would not be strictly necessary. However, if code gets added later, the cleanup in the EPROBE_DEFER case likely would get missed. Signed-off-by: Stefan Agner Reviewed-by: Daniel Baluta Acked-by: Nicolin Chen --- sound/soc/fsl/imx-spdif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index fb896b2c9ba3..797d66e43d49 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -67,10 +67,8 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) goto end; ret = devm_snd_soc_register_card(&pdev->dev, &data->card); - if (ret) { + if (ret && ret != -EPROBE_DEFER) dev_err(&pdev->dev, "snd_soc_register_card failed: %d\n", ret); - goto end; - } end: of_node_put(spdif_np); -- 2.20.1