soc: mec1501: fix build failure

When CONFIG_SYS_POWER_DEEP_SLEEP_STATES is not set, we have an unused
function that causes a build failure.
Enclose that function in the #ifdef.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-12-11 10:20:53 -05:00 committed by Maureen Helm
commit 3765e46a40

View file

@ -76,7 +76,6 @@ static void z_power_soc_deep_sleep(void)
} }
#endif
/* /*
* Light Sleep * Light Sleep
@ -97,6 +96,7 @@ static void z_power_soc_sleep(void)
__NOP(); __NOP();
__NOP(); __NOP();
} }
#endif
/* /*
* Called from _sys_suspend(s32_t ticks) in subsys/power.c * Called from _sys_suspend(s32_t ticks) in subsys/power.c