Skip to content

Commit 04e0456

Browse files
Shang XiaoJingbroonie
authored andcommitted
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 <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2f3a896 commit 04e0456

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi-aspeed-smc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,8 @@ static int aspeed_spi_probe(struct platform_device *pdev)
736736

737737
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
738738
aspi->regs = devm_ioremap_resource(dev, res);
739-
if (IS_ERR(aspi->regs)) {
740-
dev_err(dev, "missing AHB register window\n");
739+
if (IS_ERR(aspi->regs))
741740
return PTR_ERR(aspi->regs);
742-
}
743741

744742
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
745743
aspi->ahb_base = devm_ioremap_resource(dev, res);

0 commit comments

Comments
 (0)