Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1812051imu; Thu, 17 Jan 2019 03:44:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN50nZla7PlEXzUtoiAP3m+ORiLu3d8vNH7yVq/Dc6aZTorpEj2s8oTgs3ZI2Wkx0CxePWkG X-Received: by 2002:aa7:80d7:: with SMTP id a23mr14387050pfn.86.1547725455691; Thu, 17 Jan 2019 03:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547725455; cv=none; d=google.com; s=arc-20160816; b=MCVJKNE9h9DVHKRRiDCJD44P+ON7JBeTTn07ZnzpFKFDigzwLwbkzm0PQfSor7fqLU DDdU/GoT09FzdZCNLmtZYHiTfeUQeJbL8JkFFjGdak6UAWQmcLT776PMM4BdGcdAdZ6V 9khinnkIFQ3I2h1Uq7u45ynLnY0doxF+jPnCoDGOyAFu2AxOqY/2wHIfUW6wTNkD1xMw WDPCIVO69iyv4g/Mgh2BuMnm9IdiifA9T0emsZu1tS6yaVQCuUxZWxwxiO1MKKnFvXpq Iq1InXHm0q8YGGcwlD/qpPOpeivJTbgy1Ll7o7ixCCDsPQKFnqChNbdm1QSovoDaEduU jemA== 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=G9orVYrh7rYbPFUm+q+rOyis4L10MooUKeSQVugOTY8=; b=wESYII0Marpo1BDdMmE2IyORqpTGlBxlDTHj5am5Hijlz3EzYdoQrhkldLZK2aS8oA 2oWj5KZCkBaoXhq99tf5BsHvdQNtKj7cZ+V9G093bLGogDyL86GgRw5UJHz2wUsbuder cL9J4KreCShz4qGs6DyKQUNaH7LvvqVLTV4k4tcU42RZfoCPHPUAY7p04d7OUviNqy1L IcUaH5IAD+UOn4GjIFjQM6W0tLNKT8r/+Zh4aEsiscWdwZRFUzXyQGqudHZa7cjLb2Fa 34ZCaediJRVaYahJHA2l3i54eo85Ap86frnrAap5fyd0YoAiXZp+hTOqMY7kLzHfjXYJ U2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=T3l2XnLW; 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 p16si1462732plr.31.2019.01.17.03.43.59; Thu, 17 Jan 2019 03:44:15 -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=T3l2XnLW; 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 S1728019AbfAQJGy (ORCPT + 99 others); Thu, 17 Jan 2019 04:06:54 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:48910 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbfAQJGx (ORCPT ); Thu, 17 Jan 2019 04:06:53 -0500 Received: from trochilidae.toradex.int (unknown [46.140.72.82]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 13F1D5C1DE0; 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=G9orVYrh7rYbPFUm+q+rOyis4L10MooUKeSQVugOTY8=; b=T3l2XnLWWWhQLOb8jh3mJxrUwHFN4NPXx3ihUz2jyLOpc1vN7yqgFyGBhsOWa6fyid3UjW RNenmHFIo9VooHDbKZECEhfSMZAhEf3I5y9dXSh0YwRUtQgYqRq8E9l8OgoNOxJzNsMorQ dpGq2JKj0LwsjAocYlzpJKBg4NHF5rc= 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 2/5] ASoC: imx-spdif: don't print EPROBE_DEFER as error Date: Thu, 17 Jan 2019 10:06:37 +0100 Message-Id: <20190117090640.12972-2-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. 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 --- 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