Răsfoiți Sursa

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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
Wei Yongjun 9 ani în urmă
părinte
comite
62ee4ecb6b
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      sound/soc/sunxi/sun4i-i2s.c

+ 1 - 3
sound/soc/sunxi/sun4i-i2s.c

@@ -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) {