Skip to content

Commit 3159c96

Browse files
arndbdlezcano
authored andcommitted
thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent b498256 commit 3159c96

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thermal/mediatek/lvts_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ static inline int lvts_debugfs_init(struct device *dev,
263263
return 0;
264264
}
265265

266-
static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
267-
268266
#endif
269267

270268
static int lvts_raw_to_temp(u32 raw_temp, int temp_factor)

0 commit comments

Comments
 (0)