Skip to content

Commit 62ee4ec

Browse files
Wei Yongjunbroonie
Wei Yongjun
authored andcommitted
ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent dcf7d19 commit 62ee4ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/sunxi/sun4i-i2s.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,8 @@ static int sun4i_i2s_probe(struct platform_device *pdev)
599599

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

607605
irq = platform_get_irq(pdev, 0);
608606
if (irq < 0) {

0 commit comments

Comments
 (0)