[patch -next] ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()

Subsystems: freescale soc sound drivers, sound, sound - soc layer / dynamic audio power management (asoc), the rest

STALE4401d

2 messages, 2 authors, 2014-07-31 · open the first message on its own page

[patch -next] ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()

From: Dan Carpenter <hidden>
Date: 2014-07-31 09:33:07

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

Signed-off-by: Dan Carpenter <redacted>
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");

Re: [patch -next] ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()

From: Mark Brown <broonie@kernel.org>
Date: 2014-07-31 19:24:28

On Thu, Jul 31, 2014 at 12:32:09PM +0300, Dan Carpenter wrote:
There is a cut and paste bug so it returns success instead of the error
code.
Applied, thanks.  Might be worth looking at how you're generating your
CC lists here, it seems a bit random.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help