Skip to content

Commit aeff0ee

Browse files
lemreycarlescufi
authored andcommitted
power: declare power states unconditionally
Declare power management states unconditionally. Should fix #13194. Signed-off-by: Emanuele Di Santo <[email protected]>
1 parent 1e6ff6b commit aeff0ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/power.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
extern "C" {
1515
#endif
1616

17-
#ifdef CONFIG_SYS_POWER_MANAGEMENT
18-
19-
extern unsigned char sys_pm_idle_exit_notify;
20-
2117
/**
2218
* @defgroup power_management_api Power Management
2319
* @{
@@ -56,6 +52,10 @@ enum power_states {
5652
SYS_POWER_STATE_MAX
5753
};
5854

55+
#ifdef CONFIG_SYS_POWER_MANAGEMENT
56+
57+
extern unsigned char sys_pm_idle_exit_notify;
58+
5959
/**
6060
* @brief System Power Management API
6161
*

0 commit comments

Comments
 (0)