diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-05-12 14:03:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-12 17:35:34 +0100 |
commit | afb7f565249aca3d46954889f07b48e8caf860ce (patch) | |
tree | 51b79dcdf07770040a5c7673aed32f0276727cfa /drivers/spi/spi-dw-mmio.c | |
parent | 5483ef03e075c1625c66ba728b55ef67f7cb3ed1 (diff) |
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 <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200512110315.58845-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw-mmio.c')
-rw-r--r-- | drivers/spi/spi-dw-mmio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index c34fba2c0346..398f7926cf92 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c @@ -197,10 +197,8 @@ static int dw_spi_mmio_probe(struct platform_device *pdev) /* Get basic io resource and map it */ dws->regs = devm_platform_ioremap_resource(pdev, 0); - if (IS_ERR(dws->regs)) { - dev_err(&pdev->dev, "SPI region map failed\n"); + if (IS_ERR(dws->regs)) return PTR_ERR(dws->regs); - } dws->irq = platform_get_irq(pdev, 0); if (dws->irq < 0) |