diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-02-05 09:54:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-05 12:41:49 -0500 |
commit | 2f6fdefb3503ff0600b5435c0c9ce43cb50d3f1a (patch) | |
tree | a2e884fae97db04ff51d38f76e3d1d91893d4497 /drivers/spi | |
parent | a3ff9582369e71439ad2bf40e70474b9f1b85c55 (diff) |
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')
-rw-r--r-- | drivers/spi/spi-dw-mmio.c | 5 |
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) | |||
47 | 47 | ||
48 | /* Get basic io resource and map it */ | 48 | /* Get basic io resource and map it */ |
49 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 49 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
50 | if (!mem) { | ||
51 | dev_err(&pdev->dev, "no mem resource?\n"); | ||
52 | return -EINVAL; | ||
53 | } | ||
54 | |||
55 | dws->regs = devm_ioremap_resource(&pdev->dev, mem); | 50 | dws->regs = devm_ioremap_resource(&pdev->dev, mem); |
56 | if (IS_ERR(dws->regs)) { | 51 | if (IS_ERR(dws->regs)) { |
57 | dev_err(&pdev->dev, "SPI region map failed\n"); | 52 | dev_err(&pdev->dev, "SPI region map failed\n"); |