From: Dan Carpenter Date: Thu, 31 Jul 2014 09:32:09 +0000 (+0300) Subject: ASoC: fsl_asrc: fix an error code in fsl_asrc_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d387dd08e444b22f844475780fe12a1ad1c6fffd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Mark Brown --- 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");