]> git.hungrycats.org Git - linux/commitdiff
serial: sirf: Fix compilation failure
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 29 May 2014 10:13:43 +0000 (11:13 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 28 Jul 2014 07:12:20 +0000 (09:12 +0200)
commit 58eb97c99da6a82c556ddec70683eb3863d4f617 upstream.

After 07d410e0) serial: sirf: fix spinlock deadlock issue it is no longer
possiblet to compile this driver. The rename of one of the spinlocks is
faulty. After looking at the original patch I believe this is the correct
fix.

Compile tested using ARM's multi_v7_defconfig

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Barry Song <baohua@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/tty/serial/sirfsoc_uart.c

index ef61908cf9c39da6df62b6754fd5e645ce64fdc8..25aecf0fa339917b7b4bba251bbd0cd7241211ce 100644 (file)
@@ -700,7 +700,7 @@ static void sirfsoc_uart_rx_dma_complete_tl(unsigned long param)
        struct sirfsoc_uart_port *sirfport = (struct sirfsoc_uart_port *)param;
        struct uart_port *port = &sirfport->port;
        unsigned long flags;
-       spin_lock_irqsave(&port->rx_lock, flags);
+       spin_lock_irqsave(&port->lock, flags);
        while (sirfport->rx_completed != sirfport->rx_issued) {
                sirfsoc_uart_insert_rx_buf_to_tty(sirfport,
                                        SIRFSOC_RX_DMA_BUF_SIZE);