ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 29 Aug 2013 00:00:05 +0000 (08:00 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 29 Aug 2013 12:17:52 +0000 (13:17 +0100)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_spdif.c

index a9798aa1cd8d53dfad6f543051006c93d3d9915b..e93dc0dfb0d92df2802a892030b33b15433c942a 100644 (file)
@@ -1113,10 +1113,8 @@ static int fsl_spdif_probe(struct platform_device *pdev)
        }
 
        regs = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(regs)) {
-               dev_err(&pdev->dev, "could not map device resources\n");
+       if (IS_ERR(regs))
                return PTR_ERR(regs);
-       }
 
        spdif_priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev,
                        "core", regs, &fsl_spdif_regmap_config);