From 3765e46a40aa0a355798c7b85f19d2ed2fe1d447 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 11 Dec 2019 10:20:53 -0500 Subject: [PATCH] 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 --- soc/arm/microchip_mec/mec1501/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/arm/microchip_mec/mec1501/power.c b/soc/arm/microchip_mec/mec1501/power.c index 645493c5d02..984e0ee530e 100644 --- a/soc/arm/microchip_mec/mec1501/power.c +++ b/soc/arm/microchip_mec/mec1501/power.c @@ -76,7 +76,6 @@ static void z_power_soc_deep_sleep(void) } -#endif /* * Light Sleep @@ -97,6 +96,7 @@ static void z_power_soc_sleep(void) __NOP(); __NOP(); } +#endif /* * Called from _sys_suspend(s32_t ticks) in subsys/power.c