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
This commit is contained in:
parent
2279e8f927
commit
f13582a42d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user