spi: sifive: Remove redundant dev_err call in sifive_spi_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 22 Feb 2019 05:46:32 +0000 (05:46 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 22 Feb 2019 15:17:58 +0000 (15:17 +0000)
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 <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sifive.c

index ebca3fc4d3452bc716970d891bda75076a2ca076..93ec2c6cdbfd58c73c2ddc9f705629495333f518 100644 (file)
@@ -310,7 +310,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        spi->regs = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(spi->regs)) {
-               dev_err(&pdev->dev, "Unable to map IO resources\n");
                ret = PTR_ERR(spi->regs);
                goto put_master;
        }