Skip to content

Commit afb7f56

Browse files
andy-shevbroonie
authored andcommitted
spi: dw: Drop duplicate error message when remap resource
devm_platform_ioremap_resource() will issue a message in the error case. Thus, no need to duplicate in the driver. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 5483ef0 commit afb7f56

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi-dw-mmio.c

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

198198
/* Get basic io resource and map it */
199199
dws->regs = devm_platform_ioremap_resource(pdev, 0);
200-
if (IS_ERR(dws->regs)) {
201-
dev_err(&pdev->dev, "SPI region map failed\n");
200+
if (IS_ERR(dws->regs))
202201
return PTR_ERR(dws->regs);
203-
}
204202

205203
dws->irq = platform_get_irq(pdev, 0);
206204
if (dws->irq < 0)

0 commit comments

Comments
 (0)