Skip to content

Commit 938050c

Browse files
decsnyjhedberg
authored andcommitted
drivers: lpuart: Fix async configure
Fix async configure function not being called when the irq driven api is not used, which both causes a build warning and would not work at runtime. Signed-off-by: Declan Snyder <[email protected]>
1 parent f4e95cc commit 938050c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/serial/uart_mcux_lpuart.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,9 @@ static int mcux_lpuart_callback_set(const struct device *dev, uart_callback_t ca
714714
data->callback = NULL;
715715
data->cb_data = NULL;
716716
data->api_type = LPUART_ASYNC;
717-
return mcux_lpuart_configure_async(dev);
718-
#else
719-
return 0;
720717
#endif
718+
719+
return mcux_lpuart_configure_async(dev);
721720
}
722721

723722
static int mcux_lpuart_tx(const struct device *dev, const uint8_t *buf, size_t len,

0 commit comments

Comments
 (0)