linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Baluta <daniel.baluta@gmail.com>
To: Stefan Agner <stefan@agner.ch>
Cc: Timur Tabi <timur@kernel.org>,
	Nicolin Chen <nicoleotsuka@gmail.com>,
	Xiubo Li <Xiubo.Lee@gmail.com>,
	Linux-ALSA <alsa-devel@alsa-project.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Takashi Iwai <tiwai@suse.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Fabio Estevam <fabio.estevam@nxp.com>
Subject: Re: [alsa-devel] [PATCH 4/5] ASoC: imx-sgtl5000: put of nodes if finding codec fails
Date: Thu, 17 Jan 2019 12:04:05 +0200	[thread overview]
Message-ID: <CAEnQRZDUYGnU5+G0jd_o0yH4qYjrWtdPEB7O4TfMvtpYzJPO1Q@mail.gmail.com> (raw)
In-Reply-To: <20190117090640.12972-4-stefan@agner.ch>

On Thu, Jan 17, 2019 at 11:07 AM Stefan Agner <stefan@agner.ch> wrote:
>
> Make sure to properly put the of node in case finding the codec
> fails.
>
> Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000")
> Signed-off-by: Stefan Agner <stefan@agner.ch>

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>

> ---
>  sound/soc/fsl/imx-sgtl5000.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
> index e1e20499b2f1..45969e6dfad7 100644
> --- a/sound/soc/fsl/imx-sgtl5000.c
> +++ b/sound/soc/fsl/imx-sgtl5000.c
> @@ -111,7 +111,8 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
>         codec_dev = of_find_i2c_device_by_node(codec_np);
>         if (!codec_dev) {
>                 dev_err(&pdev->dev, "failed to find codec platform device\n");
> -               return -EPROBE_DEFER;
> +               ret = -EPROBE_DEFER;
> +               goto fail;
>         }
>
>         data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
> --
> 2.20.1
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2019-01-17 10:04 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
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   ` Daniel Baluta [this message]
2019-01-17 12:04   ` [alsa-devel] " 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=CAEnQRZDUYGnU5+G0jd_o0yH4qYjrWtdPEB7O4TfMvtpYzJPO1Q@mail.gmail.com \
    --to=daniel.baluta@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=nicoleotsuka@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).