aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/atmel_serial.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index c421d11b3d4c..2b6ac1be00d3 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -1677,6 +1677,12 @@ static void atmel_shutdown(struct uart_port *port)
1677 atmel_port->release_tx(port); 1677 atmel_port->release_tx(port);
1678 1678
1679 /* 1679 /*
1680 * Reset ring buffer pointers
1681 */
1682 atmel_port->rx_ring.head = 0;
1683 atmel_port->rx_ring.tail = 0;
1684
1685 /*
1680 * Free the interrupt 1686 * Free the interrupt
1681 */ 1687 */
1682 free_irq(port->irq, port); 1688 free_irq(port->irq, port);