Skip to content

Commit

Permalink
ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_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@kernel.org>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Jul 4, 2016
1 parent dcf7d19 commit 62ee4ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/sunxi/sun4i-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,8 @@ static int sun4i_i2s_probe(struct platform_device *pdev)

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(regs)) {
dev_err(&pdev->dev, "Can't request IO region\n");
if (IS_ERR(regs))
return PTR_ERR(regs);
}

irq = platform_get_irq(pdev, 0);
if (irq < 0) {
Expand Down

0 comments on commit 62ee4ec

Please sign in to comment.