Skip to contentSkip to conversation

thermal/drivers/mediatek/lvts: remove unused lvts_debugfs_exit

PATCH Applied Arnd Bergmann 2 participants 2 messages May 5, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal/drivers/mediatek/lvts: remove unused lvts_debugfs_exit

From: Arnd Bergmann <[email protected]>

When debugfs is disabled, the function has no reference any more:

drivers/thermal/mediatek/lvts_thermal.c:266:13: error: 'lvts_debugfs_exit' defined but not used [-Werror=unused-function]
266 | static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }

      |             ^~~~~~~~~~~~~~~~~
Fixes ef280c17a840 ("thermal/drivers/mediatek/lvts: Fix debugfs unregister on failure")
---
 drivers/thermal/mediatek/lvts_thermal.c | 2 --
 1 file changed, 2 deletions(-)
drivers/thermal/mediatek/lvts_thermal.c +0 -2
index c0be4ca55c7b..985925147ac0 100644
@@ -263,8 +263,6 @@ static inline int lvts_debugfs_init(struct device *dev,
 	return 0;
 }
 
-static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
-
 #endif
 
 static int lvts_raw_to_temp(u32 raw_temp, int temp_factor)
Signature · 1 line
2.39.5
#1 lore raw
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

When debugfs is disabled, the function has no reference any more:

drivers/thermal/mediatek/lvts_thermal.c:266:13: error: 'lvts_debugfs_exit' defined but not used [-Werror=unused-function]
266 | static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }

       |             ^~~~~~~~~~~~~~~~~
Fixes ef280c17a840 ("thermal/drivers/mediatek/lvts: Fix debugfs unregister on failure")

---

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog