summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-aspeed-smc.c
diff options
context:
space:
mode:
authorShang XiaoJing <shangxiaojing@huawei.com>2022-09-23 12:16:32 +0200
committerMark Brown <broonie@kernel.org>2022-09-23 14:56:30 +0200
commit04e0456f778de550a14d222d1a9ae0625511244d (patch)
treeb7bb2b88fb6eda0cdd90823b34d5e78bbda2c683 /drivers/spi/spi-aspeed-smc.c
parentspi: spi-mpc52xx: switch to using gpiod API (diff)
downloadlinux-04e0456f778de550a14d222d1a9ae0625511244d.tar.xz
linux-04e0456f778de550a14d222d1a9ae0625511244d.zip
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>
Diffstat (limited to 'drivers/spi/spi-aspeed-smc.c')
-rw-r--r--drivers/spi/spi-aspeed-smc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c
index 3e891bf22470..a334e89add86 100644
--- a/drivers/spi/spi-aspeed-smc.c
+++ b/drivers/spi/spi-aspeed-smc.c
@@ -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);