drivers: timer: nxp: Conditionally compile the wakeup source

The function to enable wakeup from deep sleep modes is not
available on all SoC's. Hence compile this only when the
wakeup_source property is enabled.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2023-04-27 11:50:21 -05:00 committed by David Leach
commit b72b99f49a

View file

@ -122,9 +122,9 @@ static int sys_clock_driver_init(void)
base = (OSTIMER_Type *)DT_INST_REG_ADDR(0);
if (DT_INST_PROP(0, wakeup_source)) {
EnableDeepSleepIRQ(DT_INST_IRQN(0));
}
#if (DT_INST_PROP(0, wakeup_source))
EnableDeepSleepIRQ(DT_INST_IRQN(0));
#endif
/* Initialize the OS timer, setting clock configuration. */
OSTIMER_Init(base);