diff options
Diffstat (limited to 'power/common.c')
-rw-r--r-- | power/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/power/common.c b/power/common.c index e08fcf369c..b1bced365d 100644 --- a/power/common.c +++ b/power/common.c @@ -328,6 +328,7 @@ static void power_lid_change(void) } DECLARE_HOOK(HOOK_LID_CHANGE, power_lid_change, HOOK_PRIO_DEFAULT); +#ifdef CONFIG_EXTPOWER static void power_ac_change(void) { if (extpower_is_present()) { @@ -342,6 +343,7 @@ static void power_ac_change(void) } } DECLARE_HOOK(HOOK_AC_CHANGE, power_ac_change, HOOK_PRIO_DEFAULT); +#endif /*****************************************************************************/ /* Interrupts */ |