Skip to content

Commit

Permalink
ASoC: fsl_spdif: remove redundant dev_err call in fsl_spdif_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Aug 29, 2013
1 parent 2a956ec commit bfd7d1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/fsl/fsl_spdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bfd7d1a

Please sign in to comment.