Commit c9e0a4b8 authored by Anas Nashif's avatar Anas Nashif Committed by Henrik Brix Andersen
Browse files

soc: ene: move init code from SYS_INIT to hooks



Replace SYS_INIT with SoC hooks and adapt SoC init code

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 5c541ffd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,3 +7,4 @@ config SOC_KB1200
	select CPU_HAS_ARM_MPU
	select CPU_CORTEX_M_HAS_DWT
	select CPU_HAS_FPU
	select SOC_EARLY_INIT_HOOK
+1 −4
Original line number Diff line number Diff line
@@ -39,11 +39,8 @@ static void clock_init(void)
	}
}

static int kb1200_init(void)
void soc_early_init_hook(void)
{
	clock_init();
	pmu_init();
	return 0;
}

SYS_INIT(kb1200_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);