diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-07-31 13:32:09 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-31 23:23:24 +0400 |
commit | d387dd08e444b22f844475780fe12a1ad1c6fffd (patch) | |
tree | f979bf27d97aa767dbdd237c51cd73b7029bcd31 /sound/soc | |
parent | d526416c4fb23a48ed2547138c43e96fa3901124 (diff) | |
download | linux-d387dd08e444b22f844475780fe12a1ad1c6fffd.tar.xz |
ASoC: fsl_asrc: fix an error code in fsl_asrc_probe()
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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/fsl_asrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 910525b5e5fc..424b23c38d9a 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"); |