[PATCH] thermal/drivers/mediatek/lvts: remove unused lvts_debugfs_exit

From: Arnd Bergmann
Date: Mon May 05 2025 - 01:25:16 EST


From: Arnd Bergmann <arnd@xxxxxxxx>

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")
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
drivers/thermal/mediatek/lvts_thermal.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c
index c0be4ca55c7b..985925147ac0 100644
--- a/drivers/thermal/mediatek/lvts_thermal.c
+++ b/drivers/thermal/mediatek/lvts_thermal.c
@@ -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)
--
2.39.5