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

Commit 4e6fafee authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown
Browse files

spi/rockchip: remove redundant dev_err call in rockchip_spi_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 c4950143
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -600,7 +600,6 @@ static int rockchip_spi_probe(struct platform_device *pdev)
	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	rs->regs = devm_ioremap_resource(&pdev->dev, mem);
	rs->regs = devm_ioremap_resource(&pdev->dev, mem);
	if (IS_ERR(rs->regs)) {
	if (IS_ERR(rs->regs)) {
		dev_err(&pdev->dev, "Failed to map SPI region\n");
		ret =  PTR_ERR(rs->regs);
		ret =  PTR_ERR(rs->regs);
		goto err_ioremap_resource;
		goto err_ioremap_resource;
	}
	}