Skip to content

Commit a4ebd42

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/ti-soc: Remove redundant msg in ti_thermal_expose_sensor()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230620090732.50025-8-frank.li@vivo.com
1 parent f13582a commit a4ebd42

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/thermal/ti-soc-thermal/ti-thermal-common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id,
182182
ti_bandgap_write_update_interval(bgp, data->sensor_id,
183183
TI_BANDGAP_UPDATE_INTERVAL_MS);
184184

185-
if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal))
186-
dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n");
185+
devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal);
187186

188187
return 0;
189188
}

0 commit comments

Comments
 (0)