From be01256bc6d2ea9c5b3dca69f8cc46e325ea6775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Mon, 1 Dec 2025 13:33:31 +0100 Subject: [PATCH] soc: nordic: common: gppi_init: Move initialization earlier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GPPI initialization shall be executed as early as possible. Add _ prefix to the initialization function to reduce chances that other function calls uninitialized GPPI. Signed-off-by: Krzysztof Chruściński --- soc/nordic/common/gppi_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/nordic/common/gppi_init.c b/soc/nordic/common/gppi_init.c index 98915491041bf..e117900948689 100644 --- a/soc/nordic/common/gppi_init.c +++ b/soc/nordic/common/gppi_init.c @@ -9,7 +9,7 @@ #include #endif -static int gppi_init(void) +static int _gppi_init(void) { static nrfx_gppi_t gppi_instance; @@ -55,5 +55,5 @@ static int gppi_init(void) } #if defined(CONFIG_NRFX_GPPI) && !defined(CONFIG_NRFX_GPPI_V1) -SYS_INIT(gppi_init, PRE_KERNEL_1, 0); +SYS_INIT(_gppi_init, EARLY, 0); #endif