From: Yangtao Li Date: Tue, 20 Jun 2023 09:07:29 +0000 (+0800) Subject: thermal/drivers/ti-soc: Remove redundant msg in ti_thermal_expose_sensor() X-Git-Tag: v6.5-rc1~211^2^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4ebd423749f4d5660533e451adf20585a236b1a;p=thirdparty%2Flinux.git 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 Acked-by: Keerthy Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230620090732.50025-8-frank.li@vivo.com --- diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c index 6a5335931f4db..d414a4b7a94a4 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c +++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c @@ -182,8 +182,7 @@ int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, ti_bandgap_write_update_interval(bgp, data->sensor_id, TI_BANDGAP_UPDATE_INTERVAL_MS); - if (devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal)) - dev_warn(bgp->dev, "failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(bgp->dev, data->ti_thermal); return 0; }