From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Stefan Agner <stefan@agner.ch>
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
Date: Thu, 17 Jan 2019 14:00:42 -0800 [thread overview]
Message-ID: <20190117220041.GB16918@Asurada-Nvidia.nvidia.com> (raw)
In-Reply-To: <20190117090640.12972-2-stefan@agner.ch>
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 <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
> ---
> 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
>
next prev parent reply other threads:[~2019-01-17 22:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-17 9:06 [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error Stefan Agner
2019-01-17 9:06 ` [PATCH 2/5] ASoC: imx-spdif: " Stefan Agner
2019-01-17 9:59 ` [alsa-devel] " Daniel Baluta
2019-01-17 22:00 ` Nicolin Chen [this message]
2019-01-17 9:06 ` [PATCH 3/5] ASoC: imx-sgtl5000: " Stefan Agner
2019-01-17 10:01 ` [alsa-devel] " Daniel Baluta
2019-01-17 22:03 ` Nicolin Chen
2019-01-17 9:06 ` [PATCH 4/5] ASoC: imx-sgtl5000: put of nodes if finding codec fails Stefan Agner
2019-01-17 10:04 ` [alsa-devel] " Daniel Baluta
2019-01-17 12:04 ` Fabio Estevam
2019-01-17 22:04 ` Nicolin Chen
2019-01-17 9:06 ` [PATCH 5/5] ASoC: imx-sgtl5000: lower log level for potential probe deferral cases Stefan Agner
2019-01-17 10:00 ` [alsa-devel] " Daniel Baluta
2019-01-17 22:01 ` Nicolin Chen
2019-01-17 10:01 ` [alsa-devel] [PATCH 1/5] ASoC: fsl_spdif: don't print EPROBE_DEFER as error Daniel Baluta
2019-01-17 21:52 ` Nicolin Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190117220041.GB16918@Asurada-Nvidia.nvidia.com \
--to=nicoleotsuka@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stefan@agner.ch \
--cc=timur@kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox