Skip to content

Commit fe794d1

Browse files
arndbgregkh
authored andcommitted
thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit
commit 3159c96 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6695a1f commit fe794d1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ static inline int lvts_debugfs_init(struct device *dev,
259259
return 0;
260260
}
261261

262-
static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
263-
264262
#endif
265263

266264
static int lvts_raw_to_temp(u32 raw_temp, int temp_factor)

0 commit comments

Comments
 (0)