From: Wei Yongjun Date: Thu, 29 Aug 2013 00:00:05 +0000 (+0800) Subject: ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe() X-Git-Tag: v3.12-rc1~43^2~9^2~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfd7d1aa3b603cf43e6545f873de714b991d6a8a;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: Mark Brown --- 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);