Commit 04e0456f authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Mark Brown

spi: aspeed: Remove redundant dev_err call

devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.
Signed-off-by: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Link: https://lore.kernel.org/r/20220923101632.19170-1-shangxiaojing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2f3a896b
...@@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev) ...@@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
aspi->regs = devm_ioremap_resource(dev, res); aspi->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(aspi->regs)) { if (IS_ERR(aspi->regs))
dev_err(dev, "missing AHB register window\n");
return PTR_ERR(aspi->regs); return PTR_ERR(aspi->regs);
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 1); res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
aspi->ahb_base = devm_ioremap_resource(dev, res); aspi->ahb_base = devm_ioremap_resource(dev, res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment