From 8faa22cb27bd9cbee39b810e6a3d48593ba96242 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 18 Apr 2018 18:55:30 -0700 Subject: APL/GLK boards: Use chipset_pre_init_callback This change updates all APL/GLK boards to use chipset_pre_init_callback instead of hook. BUG=b:78259506 BRANCH=None TEST=Verified that yorp still boots. Change-Id: I71ab0f1111e89a254db83fc58abfdfe8eacd3575 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/1018734 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Jett Rink --- board/glkrvp_ite/board.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'board/glkrvp_ite') diff --git a/board/glkrvp_ite/board.c b/board/glkrvp_ite/board.c index 2741f7511b..7194259fa6 100644 --- a/board/glkrvp_ite/board.c +++ b/board/glkrvp_ite/board.c @@ -65,7 +65,7 @@ const enum gpio_signal hibernate_wake_pins[] = { const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); /* Called by APL power state machine when transitioning from G3 to S5 */ -static void chipset_pre_init(void) +void chipset_pre_init_callback(void) { int data; @@ -96,8 +96,6 @@ static void chipset_pre_init(void) I2C_ADDR_PCA555_PMIC_BATT_GPIO, PCA9555_CMD_OUTPUT_PORT_0, data | PCA9555_IO_0); } -DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, chipset_pre_init, HOOK_PRIO_DEFAULT); - /* Initialize board. */ static void board_init(void) -- cgit v1.2.1