From 761bb8b1f37cb855ae04ab4b8bc75edfb145b0e3 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Tue, 8 Oct 2019 09:18:31 +0200 Subject: [PATCH] soc: arm: stm32g071: remove kernel header inclusions in soc.h Remove the inclusion of kernel_includes.h from soc.h and replace it with including the board-specific auto-generated headers. This aligns the soc.h header with the current policy not to include kernel headers in soc.h. Signed-off-by: Ioannis Glaropoulos --- soc/arm/st_stm32/stm32g0/soc.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/soc/arm/st_stm32/stm32g0/soc.h b/soc/arm/st_stm32/stm32g0/soc.h index 35b32be94d5..9eb60a23271 100644 --- a/soc/arm/st_stm32/stm32g0/soc.h +++ b/soc/arm/st_stm32/stm32g0/soc.h @@ -18,16 +18,12 @@ #ifndef _STM32G0_SOC_H_ #define _STM32G0_SOC_H_ +#include + #ifndef _ASMLANGUAGE #include -/* ARM CMSIS definitions must be included before kernel_includes.h. - * Therefore, it is essential to include kernel_includes.h after including - * core SOC-specific headers. - */ -#include - #include #ifdef CONFIG_CLOCK_CONTROL_STM32_CUBE @@ -52,6 +48,9 @@ #include #endif +/* Add include for DTS generated information */ +#include + #endif /* !_ASMLANGUAGE */ #endif /* _STM32G0_SOC_H_ */