Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2425369imu; Thu, 17 Jan 2019 14:03:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Cm976CQbqMi5Gkd8YalmuR8wC36O+KHX2zIbLRxPkOkh7PWeaxnqJFMynhWO7DDpFVYjL X-Received: by 2002:a63:f844:: with SMTP id v4mr14972599pgj.82.1547762627924; Thu, 17 Jan 2019 14:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547762627; cv=none; d=google.com; s=arc-20160816; b=Fdruo+3IlOap2wRMcrlmmaVv5pwt+GW9u5pvSZyPOJjI9qb5GWgqI1GruLSrCOYv/d IZqbFXvcVPsQOJiRZ5Ma2+OlVZ2OayjpxeWa++zo3ELLD2ZeC7CNaq2Y//UqKH48JgEe vmB5Yf72G5JiJ45dIxJhZnjLz1C1ttKhTbcvEsqPQLffxUEhxMxvRQooZlZYSREZy7gk y8j/NS8Z6GOzj0jEHf1amMKnu0UqwOfcpmMsliMzOitq32raT+ae+YrvkucCFQ3X442J 1t0eLzyB4uIyn7ID6HMDy/NCX43wNRwxWM/BYxRUOjPkZZyQ92Cj0dDimFkOO+1rkoo4 it1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SsOaaCSSXWMYBSprY2bua07xhAURJKtBDTpbO+78cJI=; b=ctZ6QtjI2V7Q5lkges2dmlvtjjGtORKuyW+e7F3Ns0Iv7cxd5RkZRJyHgv6odVh3gQ LOFFqOBmef5LiZJsgAbKypCNgmuOVk0516+C8rmWqE6jM/0eOV/K42jNNKqO5tL48QOo snPKVwL4379/XPosp5nL7IauJjTLbPQwVo9GXy21QoradZ71b1KyKHWqypcPC4NoquIC a2THEM27m+S8xliLCIOs7tb4lRJVhUsymRxaxJ+Aso8cfljV0y93LZbRZCf+nD5fW6Mg 5+Cw6foCosJPyaWnAxftynUVM4NrCEPeQz0fsfpxwQZuDUNfEeYpQaz5nu0O4Zj2NvB9 cyqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WCtBB3nZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si2753314pgj.171.2019.01.17.14.03.31; Thu, 17 Jan 2019 14:03:47 -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=@gmail.com header.s=20161025 header.b=WCtBB3nZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbfAQWAq (ORCPT + 99 others); Thu, 17 Jan 2019 17:00:46 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39844 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbfAQWAq (ORCPT ); Thu, 17 Jan 2019 17:00:46 -0500 Received: by mail-pl1-f194.google.com with SMTP id 101so5348516pld.6 for ; Thu, 17 Jan 2019 14:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SsOaaCSSXWMYBSprY2bua07xhAURJKtBDTpbO+78cJI=; b=WCtBB3nZCUOV0qq/63/UoZnpV2wKOKi7lS0JzOeZ7JlMCUPYzB3QG03zdSuxIzgYC1 sY8qd4RLcHyPPMMq328H3lq3QIGNx6rjYNHf08ivyvUTCpK5beVkMk8NO2mWaKh9Fh/x STBS9R10GZyqS2sNxohN0PFaI1E+6e/YnQ9xN8d1qn2RQP8vAKb6ZU624r2GRylSRpZw BGObaSdxQ/aLbgqL80OSquPxhonGKoUC4fZdkfdzSO0537c7T81v80M122PAm0es7kXk gxR4yJQOphfitDDv2Fb6v7bA6ViP8dMJKOXnYjuB4pHLkgBElP5kHvHTAUENtr6+DGrk Dzgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SsOaaCSSXWMYBSprY2bua07xhAURJKtBDTpbO+78cJI=; b=OuBEXfa/yK9sRIukOb43GfhehU1hrRnV7z02egkil3SiPQ4XTtVEke9rcPBPrj/2Ce ajAQRZ6ypE/vU4EUg1hMUG/+lbJOXsZAgzo3RzRSWGm4z17Izwb+mRhBiEoGuSm7mm5q 3wsUYjTm914uLyZsq6EammfqqVTtXBS0n8wh5s05XY2cddu6byAthMgVN0M2C8xpfDFH Fos1yEJfrWu/YwrVT3Ib7OrM2GAKQhlm8kqTImyfBBTy+AM8ESQDUgzQbENm0xcqOooE 3Uzl+WfWpOw/xXjyhtdpFK2lOHXryUgaKNQVxnnQiwKVz93JPYiAyvn0MKWtKZ2Ybz0v tSIQ== X-Gm-Message-State: AJcUukeEqmo1atlqilb4KQhc/0hyisL479Ppk+uYcr4t0tw8MzsSsSol qn2i4lYX/QsBbN7DDrEYu4iPFtKw X-Received: by 2002:a17:902:a601:: with SMTP id u1mr16570394plq.77.1547762445606; Thu, 17 Jan 2019 14:00:45 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id 5sm5497623pfz.149.2019.01.17.14.00.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 14:00:45 -0800 (PST) Date: Thu, 17 Jan 2019 14:00:42 -0800 From: Nicolin Chen To: Stefan Agner Cc: timur@kernel.org, Xiubo.Lee@gmail.com, 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 Subject: Re: [PATCH 2/5] ASoC: imx-spdif: don't print EPROBE_DEFER as error Message-ID: <20190117220041.GB16918@Asurada-Nvidia.nvidia.com> References: <20190117090640.12972-1-stefan@agner.ch> <20190117090640.12972-2-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190117090640.12972-2-stefan@agner.ch> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 10:06:37AM +0100, Stefan Agner wrote: > 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. Considering there is no code being added between them over the years, I am okay to remove it since it makes things clean. But as you mentioned, we gotta be careful if code gets added later. > Signed-off-by: Stefan Agner 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 >