]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/serial_core.c
Subject: [PATCH 1/2] serial: Add flush_buffer() operation to uart_ops
[linux-2.6-omap-h63xx.git] / drivers / serial / serial_core.c
index 42d2e108b67968406ebc1da8ac8b316d532f578a..9884bc9eecb1f322648cf621ad6c51cd04bbe3da 100644 (file)
@@ -573,6 +573,8 @@ static void uart_flush_buffer(struct tty_struct *tty)
 
        spin_lock_irqsave(&port->lock, flags);
        uart_circ_clear(&state->info->xmit);
+       if (port->ops->flush_buffer)
+               port->ops->flush_buffer(port);
        spin_unlock_irqrestore(&port->lock, flags);
        tty_wakeup(tty);
 }