diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-06-20 12:07:30 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2023-06-26 13:03:14 +0300 |
commit | 7adbbb3b7b2a5bc413425fe001f8e237163c435f (patch) | |
tree | 7eb9b04ba13018c0b93343d0beb1b98a67c79e86 /drivers/thermal/qcom/qcom-spmi-adc-tm5.c | |
parent | a4ebd423749f4d5660533e451adf20585a236b1a (diff) | |
download | linux-7adbbb3b7b2a5bc413425fe001f8e237163c435f.tar.xz |
thermal/drivers/qcom: Remove redundant msg at probe time
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
print error information.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230620090732.50025-9-frank.li@vivo.com
Diffstat (limited to 'drivers/thermal/qcom/qcom-spmi-adc-tm5.c')
-rw-r--r-- | drivers/thermal/qcom/qcom-spmi-adc-tm5.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c index 5749149ae2e4..5ddc39b2be32 100644 --- a/drivers/thermal/qcom/qcom-spmi-adc-tm5.c +++ b/drivers/thermal/qcom/qcom-spmi-adc-tm5.c @@ -689,9 +689,7 @@ static int adc_tm5_register_tzd(struct adc_tm5_chip *adc_tm) return PTR_ERR(tzd); } adc_tm->channels[i].tzd = tzd; - if (devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd)) - dev_warn(adc_tm->dev, - "Failed to add hwmon sysfs attributes\n"); + devm_thermal_add_hwmon_sysfs(adc_tm->dev, tzd); } return 0; |