OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86b8bff
)
spi: altera: Remove redundant dev_err call in dfl_spi_altera_probe()
author
Zou Wei
<zou_wei@huawei.com>
Tue, 11 May 2021 07:08:42 +0000
(15:08 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 May 2021 09:06:53 +0000
(10:06 +0100)
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>
drivers/spi/spi-altera-dfl.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-altera-dfl.c
b/drivers/spi/spi-altera-dfl.c
index
3e32e4f
..
39a3e1a
100644
(file)
--- 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__,