diff --git a/board/glados/board.c b/board/glados/board.c index 68d261d13e..534a8086aa 100644 --- a/board/glados/board.c +++ b/board/glados/board.c @@ -454,7 +454,6 @@ uint32_t board_get_gpio_hibernate_state(uint32_t port, uint32_t pin) static void board_handle_reboot(void) { int flags; - const struct gpio_info *g = &gpio_list[GPIO_BATLOW_L_PMIC_LDO_EN]; if (system_jumped_to_this_image()) return; @@ -477,7 +476,7 @@ static void board_handle_reboot(void) cflush(); /* Bring down all rails but RTC rail (including EC power). */ - gpio_set_flags_by_mask(g->port, g->mask, GPIO_OUT_HIGH); + gpio_set_flags(GPIO_BATLOW_L_PMIC_LDO_EN, GPIO_OUT_HIGH); while (1) ; /* wait here */ } diff --git a/board/wheatley/board.c b/board/wheatley/board.c index 745a31dfc7..143642c3e0 100644 --- a/board/wheatley/board.c +++ b/board/wheatley/board.c @@ -413,7 +413,6 @@ void board_set_gpio_state_hibernate(void) static void board_handle_reboot(void) { int flags; - const struct gpio_info *g = &gpio_list[GPIO_BATLOW_L_PMIC_LDO_EN]; if (system_jumped_to_this_image()) return; @@ -432,7 +431,7 @@ static void board_handle_reboot(void) cflush(); /* Bring down all rails but RTC rail (including EC power). */ - gpio_set_flags_by_mask(g->port, g->mask, GPIO_OUT_HIGH); + gpio_set_flags(GPIO_BATLOW_L_PMIC_LDO_EN, GPIO_OUT_HIGH); while (1) ; /* wait here */ }