summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-altera-dfl.c
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-05-11 15:08:42 +0800
committerMark Brown <broonie@kernel.org>2021-05-11 10:06:53 +0100
commit532259bfd1c12d561215c32b94cd9bb7c997bc6f (patch)
tree5e645ee2c7f0678bbab15e7ef82d8c3221f39945 /drivers/spi/spi-altera-dfl.c
parent86b8bff7e3ac6775113639d88db7448a8b47f0c1 (diff)
downloadlinux-532259bfd1c12d561215c32b94cd9bb7c997bc6f.tar.bz2
spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Link: https://lore.kernel.org/r/1620716922-108572-1-git-send-email-zou_wei@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-altera-dfl.c')
-rw-r--r--drivers/spi/spi-altera-dfl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-altera-dfl.c b/drivers/spi/spi-altera-dfl.c
index 3e32e4fe5895..39a3e1a032e0 100644
--- a/drivers/spi/spi-altera-dfl.c
+++ b/drivers/spi/spi-altera-dfl.c
@@ -148,10 +148,8 @@ static int dfl_spi_altera_probe(struct dfl_device *dfl_dev)
base = devm_ioremap_resource(dev, &dfl_dev->mmio_res);
- if (IS_ERR(base)) {
- dev_err(dev, "%s get mem resource fail!\n", __func__);
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
config_spi_master(base, master);
dev_dbg(dev, "%s cs %u bpm 0x%x mode 0x%x\n", __func__,