Skip to content

Commit

Permalink
ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 31, 2014
1 parent d526416 commit d387dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/fsl_asrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d387dd0

Please sign in to comment.