summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-02-22 08:46:32 +0300
committerMark Brown <broonie@kernel.org>2019-02-22 18:17:58 +0300
commitdaad4d2a0a60b0b2879e66194100b43c41e96ca9 (patch)
tree3e96a08410fdc74d64afb173c6fe0f24213804a2 /drivers/spi
parent049e5feae18fe07df0687dc14582f338dde3fb56 (diff)
downloadlinux-daad4d2a0a60b0b2879e66194100b43c41e96ca9.tar.xz
spi: sifive: Remove redundant dev_err call in sifive_spi_probe()
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-sifive.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c
index ebca3fc4d345..93ec2c6cdbfd 100644
--- a/drivers/spi/spi-sifive.c
+++ b/drivers/spi/spi-sifive.c
@@ -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;
}