mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
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: Shang XiaoJing <shangxiaojing@huawei.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Link: https://lore.kernel.org/r/20220923101632.19170-1-shangxiaojing@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2f3a896b0a
commit
04e0456f77
@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev)
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
aspi->regs = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(aspi->regs)) {
|
||||
dev_err(dev, "missing AHB register window\n");
|
||||
if (IS_ERR(aspi->regs))
|
||||
return PTR_ERR(aspi->regs);
|
||||
}
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
||||
aspi->ahb_base = devm_ioremap_resource(dev, res);
|
||||
|
Loading…
Reference in New Issue
Block a user