diff --git a/drivers/serial/uart_pl011.c b/drivers/serial/uart_pl011.c index 9d1130dff72..de98f90ed01 100644 --- a/drivers/serial/uart_pl011.c +++ b/drivers/serial/uart_pl011.c @@ -11,9 +11,12 @@ #include #include #include -#include #include +#ifdef CONFIG_CPU_CORTEX_M +#include +#endif + /* * UART PL011 register map structure */