From b81cfdf81b8f1b889f377bd08d32f0006bf83906 Mon Sep 17 00:00:00 2001 From: Takumi Ando Date: Wed, 13 Feb 2019 17:39:29 +0900 Subject: [PATCH] soc: arm: nrf51: Fix CONFIG_SYS_POWER_MANAGEMENT exclusion We don't need these defines when we set CONFIG_SYS_POWER_MANAGEMENT=n. Signed-off-by: Takumi Ando --- soc/arm/nordic_nrf/nrf51/soc_power.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soc/arm/nordic_nrf/nrf51/soc_power.h b/soc/arm/nordic_nrf/nrf51/soc_power.h index 0668a290135..aa421e7605a 100644 --- a/soc/arm/nordic_nrf/nrf51/soc_power.h +++ b/soc/arm/nordic_nrf/nrf51/soc_power.h @@ -14,6 +14,8 @@ extern "C" { #endif +#ifdef CONFIG_SYS_POWER_MANAGEMENT + /* * Power state map: * SYS_POWER_STATE_DEEP_SLEEP: System OFF @@ -29,6 +31,8 @@ void sys_set_power_state(enum power_states state); */ void sys_power_state_post_ops(enum power_states state); +#endif /* CONFIG_SYS_POWER_MANAGEMENT */ + #ifdef __cplusplus } #endif