]> err.no Git - linux-2.6/commitdiff
[ARM] Fix 4417/1: Serial: Fix AMBA drivers locking
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 5 Jun 2007 18:39:49 +0000 (19:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Jun 2007 18:39:49 +0000 (19:39 +0100)
2389b272168ceec056ca1d8a870a97fa9c26e11a contains a merge bug; fix it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/amba-pl010.c

index 00d1255e4c12026cd3ff7104e3861e217a0649fe..e88da72f8304e9a6abc00daa73590e409e76e88b 100644 (file)
@@ -167,9 +167,9 @@ static void pl010_rx_chars(struct uart_amba_port *uap)
        ignore_char:
                status = readb(uap->port.membase + UART01x_FR);
        }
-       spin_unlock(&port->lock);
+       spin_unlock(&uap->port.lock);
        tty_flip_buffer_push(tty);
-       spin_lock(&port->lock);
+       spin_lock(&uap->port.lock);
 }
 
 static void pl010_tx_chars(struct uart_amba_port *uap)