public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle•com>
To: Timur Tabi <timur@tabi•org>
Cc: alsa-devel@alsa-project•org, Takashi Iwai <tiwai@suse•de>,
	kernel-janitors@vger•kernel.org,
	Liam Girdwood <lgirdwood@gmail•com>,
	Rob Herring <robh+dt@kernel•org>,
	Jaroslav Kysela <perex@perex•cz>, Mark Brown <broonie@kernel•org>,
	Grant Likely <grant.likely@linaro•org>,
	linuxppc-dev@lists•ozlabs.org
Subject: [patch -next] ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()
Date: Thu, 31 Jul 2014 12:32:09 +0300	[thread overview]
Message-ID: <20140731093209.GF30276@mwanda> (raw)

There is a cut and paste bug so it returns success instead of the error
code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle•com>

diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c
index b9a2888..b04438c 100644
--- a/sound/soc/fsl/fsl_asrc.c
+++ b/sound/soc/fsl/fsl_asrc.c
@@ -826,7 +826,7 @@ static int fsl_asrc_probe(struct platform_device *pdev)
 	asrc_priv->mem_clk = devm_clk_get(&pdev->dev, "mem");
 	if (IS_ERR(asrc_priv->mem_clk)) {
 		dev_err(&pdev->dev, "failed to get mem clock\n");
-		return PTR_ERR(asrc_priv->ipg_clk);
+		return PTR_ERR(asrc_priv->mem_clk);
 	}
 
 	asrc_priv->ipg_clk = devm_clk_get(&pdev->dev, "ipg");

             reply	other threads:[~2014-07-31  9:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31  9:32 Dan Carpenter [this message]
2014-07-31 19:24 ` [patch -next] ASoC: fsl_asrc: fix an error code in fsl_asrc_probe() Mark Brown

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=20140731093209.GF30276@mwanda \
    --to=dan.carpenter@oracle$(echo .)com \
    --cc=alsa-devel@alsa-project$(echo .)org \
    --cc=broonie@kernel$(echo .)org \
    --cc=grant.likely@linaro$(echo .)org \
    --cc=kernel-janitors@vger$(echo .)kernel.org \
    --cc=lgirdwood@gmail$(echo .)com \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=perex@perex$(echo .)cz \
    --cc=robh+dt@kernel$(echo .)org \
    --cc=timur@tabi$(echo .)org \
    --cc=tiwai@suse$(echo .)de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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