summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-29 00:00:05 (GMT)
committerMark Brown <broonie@linaro.org>2013-08-29 12:17:52 (GMT)
commitbfd7d1aa3b603cf43e6545f873de714b991d6a8a (patch)
treee98f7f5af085afaadd727dd1569042c8a8d00df3 /sound/soc
parent2a956ec04b3703809b6cf500dbee450e44f3a70c (diff)
downloadlinux-bfd7d1aa3b603cf43e6545f873de714b991d6a8a.tar.xz
ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe()
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>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/fsl/fsl_spdif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index a9798aa..e93dc0d 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -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);