aboutsummaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pmstandby.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_pmstandby.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pmstandby.c b/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
index 7364dbaeb..6846ac1f1 100644
--- a/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
+++ b/nuttx/arch/arm/src/stm32/stm32_pmstandby.c
@@ -46,8 +46,6 @@
#include "stm32_pwr.h"
#include "stm32_pm.h"
-#ifdef CONFIG_PM
-
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -80,7 +78,8 @@
* failure.
*
* Assumptions:
- * The caller holds the PM semaphore (g_pmsem).
+ * The caller holds the PM semaphore (g_pmsem) if this function is used
+ * as part of the NuttX power management logic.
*
****************************************************************************/
@@ -112,5 +111,3 @@ int stm32_pmstandby(void)
asm("WFI");
return OK; /* Won't get here */
}
-
-#endif /* CONFIG_PM */