Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55b21944 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

ASoC: rockchip: remove redundant dev_err call in rockchip_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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4c5258ac
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -428,10 +428,8 @@ static int rockchip_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, "No memory resource\n");
	if (IS_ERR(regs))
		return PTR_ERR(regs);
	}

	i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs,
					    &rockchip_i2s_regmap_config);