projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7adbbb3
)
thermal/drivers/mediatek/lvts_thermal: Remove redundant msg in lvts_ctrl_start()
author
Yangtao Li
<frank.li@vivo.com>
Tue, 20 Jun 2023 09:07:31 +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-10-frank.li@vivo.com
drivers/thermal/mediatek/lvts_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/mediatek/lvts_thermal.c
b/drivers/thermal/mediatek/lvts_thermal.c
index 1e11defe4f35d7d07edee7c2c683de788c4eb62c..b693fac2d6779fa211db52a9f27af773465dcc0a 100644
(file)
--- a/
drivers/thermal/mediatek/lvts_thermal.c
+++ b/
drivers/thermal/mediatek/lvts_thermal.c
@@
-998,8
+998,7
@@
static int lvts_ctrl_start(struct device *dev, struct lvts_ctrl *lvts_ctrl)
return PTR_ERR(tz);
}
- if (devm_thermal_add_hwmon_sysfs(dev, tz))
- dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
+ devm_thermal_add_hwmon_sysfs(dev, tz);
/*
* The thermal zone pointer will be needed in the