diff --git a/chip/lm4/power_button.c b/chip/lm4/power_button.c index 0ca733597b..cf458f9601 100644 --- a/chip/lm4/power_button.c +++ b/chip/lm4/power_button.c @@ -535,7 +535,7 @@ static int power_button_init(void) return EC_SUCCESS; } -DECLARE_HOOK(HOOK_INIT, power_button_init, HOOK_PRIO_DEFAULT); +DECLARE_HOOK(HOOK_INIT, power_button_init, HOOK_PRIO_DEFAULT + 1); void power_button_interrupt(enum gpio_signal signal) diff --git a/common/x86_power.c b/common/x86_power.c index ef099275ef..6aa98002f8 100644 --- a/common/x86_power.c +++ b/common/x86_power.c @@ -393,14 +393,13 @@ static int x86_power_init(void) return EC_SUCCESS; } +DECLARE_HOOK(HOOK_INIT, x86_power_init, HOOK_PRIO_DEFAULT); /*****************************************************************************/ /* Task function */ void x86_power_task(void) { - x86_power_init(); - while (1) { CPRINTF("[%T x86 power state %d = %s, in 0x%04x]\n", state, state_names[state], in_signals);