Fix below build warning when CONFIG_PM_SLEEP=n:
drivers/thermal/imx_thermal.c:243:12: warning: 'imx7_lpsr_save'
defined but not used [-Wunused-variable]
static u32 imx7_lpsr_save[2];
^~~~~~~~~~~~~~
AR drivers/spi/built-in.o
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit
e4a858fb57a2460af3c615647828f9f32e532097)
static struct imx_thermal_data *imx_thermal_data;
static int skip_finish_check;
+
+#ifdef CONFIG_PM_SLEEP
static u32 imx7_lpsr_save[2];
+#endif
static void imx_set_panic_temp(struct imx_thermal_data *data,
int panic_temp)