22e7a954edec825ad3e65e25c13a7489d2c1461e
[openwrt/staging/wigyori.git] /
1 From 885b9768ce2a66ed5d250822aed53d5114c895da Mon Sep 17 00:00:00 2001
2 From: Yangtao Li <frank.li@vivo.com>
3 Date: Tue, 20 Jun 2023 17:07:31 +0800
4 Subject: [PATCH 23/42] thermal/drivers/mediatek/lvts_thermal: Remove redundant
5 msg in lvts_ctrl_start()
6
7 The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
8 print error information.
9
10 Signed-off-by: Yangtao Li <frank.li@vivo.com>
11 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
12 Link: https://lore.kernel.org/r/20230620090732.50025-10-frank.li@vivo.com
13 ---
14 drivers/thermal/mediatek/lvts_thermal.c | 3 +--
15 1 file changed, 1 insertion(+), 2 deletions(-)
16
17 --- a/drivers/thermal/mediatek/lvts_thermal.c
18 +++ b/drivers/thermal/mediatek/lvts_thermal.c
19 @@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device
20 return PTR_ERR(tz);
21 }
22
23 - if (devm_thermal_add_hwmon_sysfs(dev, tz))
24 - dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
25 + devm_thermal_add_hwmon_sysfs(dev, tz);
26
27 /*
28 * The thermal zone pointer will be needed in the