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 <[email protected]> Acked-by: Keerthy <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f13582a commit a4ebd42

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)