drivers: uart_stm32: fix device is ready for tx dma in async init

Fixes TX DMA device is ready check in async initialization function.

Signed-off-by: Georgij Cernysiov <geo.cgv@gmail.com>
This commit is contained in:
Georgij Cernysiov 2022-05-06 08:47:03 +02:00 committed by Maureen Helm
commit 64c804ad3b

View file

@ -1410,7 +1410,7 @@ static int uart_stm32_async_init(const struct device *dev)
}
if (data->dma_tx.dma_dev != NULL) {
if (!device_is_ready(data->dma_rx.dma_dev)) {
if (!device_is_ready(data->dma_tx.dma_dev)) {
return -ENODEV;
}
}