spi: spi-efm32: remove redundant dev_err call in efm32_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 18 Aug 2013 08:11:12 +0000 (16:11 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 22 Aug 2013 10:39:04 +0000 (11:39 +0100)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-efm32.c

index ba38452f646f27eb5da2b74f3c2751d4d7802d36..dbfef3dbed31419a1e149f20fcb1c2abba409fcd 100644 (file)
@@ -396,7 +396,6 @@ static int efm32_spi_probe(struct platform_device *pdev)
        ddata->base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(ddata->base)) {
                ret = PTR_ERR(ddata->base);
-               dev_err(&pdev->dev, "failed to remap memory\n");
                goto err;
        }