diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index 53609720d15b3..89822e06eb590 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -42,7 +42,6 @@ #include #include #include -#include #include @@ -1696,12 +1695,8 @@ static bool u16550_txempty(struct uart_dev_s *dev) #ifdef HAVE_16550_CONSOLE static void u16550_putc(FAR struct u16550_s *priv, int ch) { - irqstate_t flags; - - flags = spin_lock_irqsave(NULL); while ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) == 0); u16550_serialout(priv, UART_THR_OFFSET, (uart_datawidth_t)ch); - spin_unlock_irqrestore(NULL, flags); } #endif