diff --git a/drivers/serial/uart_esp32.c b/drivers/serial/uart_esp32.c index 4004e4271cd..54231e629ae 100644 --- a/drivers/serial/uart_esp32.c +++ b/drivers/serial/uart_esp32.c @@ -575,7 +575,7 @@ static struct uart_esp32_data uart_esp32_data_##idx = { \ }, \ .hal = { \ .dev = \ - (uart_dev_t *)DT_REG_ADDR(DT_NODELABEL(uart##idx)), \ + (uart_dev_t *)DT_INST_REG_ADDR(idx), \ }, \ }; \ \