Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP

Fix following build warning if CONFIG_PM_SLEEP is not set:

drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
static int ti_bandgap_suspend(struct device *dev)
^
drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function]
static int ti_bandgap_resume(struct device *dev)
^
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

authored by

Grygorii Strashko and committed by
Eduardo Valentin
3992b62d c517d838

+1 -1
+1 -1
drivers/thermal/ti-soc-thermal/ti-bandgap.c
··· 1402 1402 return 0; 1403 1403 } 1404 1404 1405 - #ifdef CONFIG_PM 1405 + #ifdef CONFIG_PM_SLEEP 1406 1406 static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp) 1407 1407 { 1408 1408 int i;