]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit
authorArnd Bergmann <arnd@arndb.de>
Mon, 5 May 2025 05:24:52 +0000 (07:24 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 16 May 2025 10:50:01 +0000 (12:50 +0200)
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@arndb.de>
Link: https://lore.kernel.org/r/20250505052502.1812867-1-arnd@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/mediatek/lvts_thermal.c

index c0be4ca55c7b843b6809426d74aff843e27de41a..985925147ac06835111afc686f5e7a4770485097 100644 (file)
@@ -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)