[SUNSU]: Fix locking error in sunsu_stop_rx().
authorDavid S. Miller <davem@davemloft.net>
Tue, 28 Feb 2006 19:55:36 +0000 (11:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Feb 2006 19:55:36 +0000 (11:55 -0800)
The caller takes the UART port lock, so we shouldn't try
to take it again.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/sunsu.c

index 308704566948ea1a89a43fdad26810c6f7d09432..4e453fa966ae23956a370ffc24dc19a2f241a0fe 100644 (file)
@@ -299,13 +299,10 @@ static void sunsu_start_tx(struct uart_port *port)
 static void sunsu_stop_rx(struct uart_port *port)
 {
        struct uart_sunsu_port *up = (struct uart_sunsu_port *) port;
-       unsigned long flags;
 
-       spin_lock_irqsave(&up->port.lock, flags);
        up->ier &= ~UART_IER_RLSI;
        up->port.read_status_mask &= ~UART_LSR_DR;
        serial_out(up, UART_IER, up->ier);
-       spin_unlock_irqrestore(&up->port.lock, flags);
 }
 
 static void sunsu_enable_ms(struct uart_port *port)