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:
2279e8f
)
thermal/drivers/qoriq: Remove redundant msg in qoriq_tmu_register_tmu_zone()
author
Yangtao Li
<frank.li@vivo.com>
Tue, 20 Jun 2023 09:07:28 +0000
(17:07 +0800)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:14 +0000
(12:03 +0200)
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
print error information.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/20230620090732.50025-7-frank.li@vivo.com
drivers/thermal/qoriq_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/qoriq_thermal.c
b/drivers/thermal/qoriq_thermal.c
index c710449b0c503c83959851256d5c5496c0e57d04..ccc2eea7f9f548a184646cb38a39068238b978b3 100644
(file)
--- a/
drivers/thermal/qoriq_thermal.c
+++ b/
drivers/thermal/qoriq_thermal.c
@@
-163,9
+163,7
@@
static int qoriq_tmu_register_tmu_zone(struct device *dev,
else
sites |= 0x1 << id;
- if (devm_thermal_add_hwmon_sysfs(dev, tzd))
- dev_warn(dev,
- "Failed to add hwmon sysfs attributes\n");
+ devm_thermal_add_hwmon_sysfs(dev, tzd);
}
if (sites) {