summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw-mmio.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-02-05 17:54:10 +0300
committerMark Brown <broonie@kernel.org>2016-02-05 20:41:49 +0300
commit2f6fdefb3503ff0600b5435c0c9ce43cb50d3f1a (patch)
treea2e884fae97db04ff51d38f76e3d1d91893d4497 /drivers/spi/spi-dw-mmio.c
parenta3ff9582369e71439ad2bf40e70474b9f1b85c55 (diff)
downloadlinux-2f6fdefb3503ff0600b5435c0c9ce43cb50d3f1a.tar.xz
spi: dw-mmio: remove message which is handled by core
devm_ioremap_resource() validates its parameters and issues an error message if needed. Signed-off-by: Andy Shevchenko <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.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
index a6d7029a85ac..447497e9124c 100644
--- a/drivers/spi/spi-dw-mmio.c
+++ b/drivers/spi/spi-dw-mmio.c
@@ -47,11 +47,6 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
/* Get basic io resource and map it */
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!mem) {
- dev_err(&pdev->dev, "no mem resource?\n");
- return -EINVAL;
- }
-
dws->regs = devm_ioremap_resource(&pdev->dev, mem);
if (IS_ERR(dws->regs)) {
dev_err(&pdev->dev, "SPI region map failed\n");