diff options
Diffstat (limited to 'common/power_button_x86.c')
-rw-r--r-- | common/power_button_x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c index f83d0f81ab..658a422463 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -410,6 +410,7 @@ static void powerbtn_x86_init(void) } DECLARE_HOOK(HOOK_INIT, powerbtn_x86_init, HOOK_PRIO_DEFAULT); +#ifdef CONFIG_LID_SWITCH /** * Handle switch changes based on lid event. */ @@ -420,6 +421,7 @@ static void powerbtn_x86_lid_change(void) power_button_pch_pulse(); } DECLARE_HOOK(HOOK_LID_CHANGE, powerbtn_x86_lid_change, HOOK_PRIO_DEFAULT); +#endif /** * Handle debounced power button changing state. |