diff --git a/drivers/serial/uart_esp32.c b/drivers/serial/uart_esp32.c index af5bb000968..2adcc66b672 100644 --- a/drivers/serial/uart_esp32.c +++ b/drivers/serial/uart_esp32.c @@ -551,7 +551,7 @@ DEVICE_DT_DEFINE(DT_NODELABEL(uart##idx), \ NULL, \ &uart_esp32_data_##idx, \ &uart_esp32_cfg_port_##idx, \ - POST_KERNEL, \ + PRE_KERNEL_2, \ CONFIG_SERIAL_INIT_PRIORITY, \ &uart_esp32_api);