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:
parent
7d20857e4f
commit
64c804ad3b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue