summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/fsl_asrc.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-31 11:32:09 +0200
committerMark Brown <broonie@linaro.org>2014-07-31 21:23:24 +0200
commitd387dd08e444b22f844475780fe12a1ad1c6fffd (patch)
treef979bf27d97aa767dbdd237c51cd73b7029bcd31 /sound/soc/fsl/fsl_asrc.c
parentASoC: fsl_asrc: Fix sparse warnings in FSL_ASRC_FORMATS due to typo (diff)
downloadlinux-d387dd08e444b22f844475780fe12a1ad1c6fffd.tar.xz
linux-d387dd08e444b22f844475780fe12a1ad1c6fffd.zip
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/fsl/fsl_asrc.c')
-rw-r--r--sound/soc/fsl/fsl_asrc.c2
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");