diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-06-20 17:07:28 +0800 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2023-06-26 12:03:14 +0200 |
commit | f13582a42de70e5acf72c6ccd2b1472fb764d1d9 (patch) | |
tree | 1b1409fc5737adc281a4ddec1f8085bede479695 /drivers | |
parent | 2279e8f9275cb6e440c432716a1a29899c8d27c8 (diff) |
thermal/drivers/qoriq: Remove redundant msg in qoriq_tmu_register_tmu_zone()
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/thermal/qoriq_thermal.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index c710449b0c50..ccc2eea7f9f5 100644 --- 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) { |