From: Andy Shevchenko Date: Fri, 5 Feb 2016 14:54:10 +0000 (+0200) Subject: spi: dw-mmio: remove message which is handled by core X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2f6fdefb3503ff0600b5435c0c9ce43cb50d3f1a;p=linux-beck.git 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 Signed-off-by: Mark Brown --- 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");