projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb87d7
)
thermal/drivers/hisi: Remove redundant dev_err call in hisi_thermal_probe()
author
Ye Bin
<yebin10@huawei.com>
Fri, 9 Apr 2021 07:52:24 +0000
(15:52 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Tue, 20 Apr 2021 07:18:57 +0000
(09:18 +0200)
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: Ye Bin <yebin10@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/20210409075224.2109503-1-yebin10@huawei.com
drivers/thermal/hisi_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/hisi_thermal.c
b/drivers/thermal/hisi_thermal.c
index
d902db9
..
9a21ac0
100644
(file)
--- a/
drivers/thermal/hisi_thermal.c
+++ b/
drivers/thermal/hisi_thermal.c
@@
-572,10
+572,8
@@
static int hisi_thermal_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
data->regs = devm_ioremap_resource(dev, res);
- if (IS_ERR(data->regs)) {
- dev_err(dev, "failed to get io address\n");
+ if (IS_ERR(data->regs))
return PTR_ERR(data->regs);
- }
ret = data->ops->probe(data);
if (ret)