thermal/drivers/mediatek/lvts: remove unused lvts_debugfs_exit
Subsystems (2)
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")
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/thermal/mediatek/lvts_thermal.c | 2 -- 1 file changed, 2 deletions(-)
drivers/thermal/mediatek/lvts_thermal.c +0 -2
@@ -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
Daniel Lezcano
AppliedQuoted 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 voidlvts_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]>---
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