diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-08-09 16:58:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:37:48 -0400 |
commit | b83286bfa8f40cd7545d772e2fb2a94fe8bb5830 (patch) | |
tree | 048ed0bfd6294cf8f6b2978453e9d035165a8c16 /drivers/tty/serial/amba-pl011.c | |
parent | 8ad2ee955b810e2a8061d2d3d2e4e4072250b5ec (diff) |
serial: amba-pl011: Use __releases/__acquires annotations
Fix the following sparse warnings:
drivers/tty/serial/amba-pl011.c:687:20: warning: context imbalance in 'pl011_dma_flush_buffer' - unexpected unlock
drivers/tty/serial/amba-pl011.c:1200:13: warning: context imbalance in 'pl011_rx_chars' - unexpected unlock
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl011.c')
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index eb38fb851b4e..aaa22867e656 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c | |||
@@ -677,6 +677,8 @@ static inline bool pl011_dma_tx_start(struct uart_amba_port *uap) | |||
677 | * Locking: called with port lock held and IRQs disabled. | 677 | * Locking: called with port lock held and IRQs disabled. |
678 | */ | 678 | */ |
679 | static void pl011_dma_flush_buffer(struct uart_port *port) | 679 | static void pl011_dma_flush_buffer(struct uart_port *port) |
680 | __releases(&uap->port.lock) | ||
681 | __acquires(&uap->port.lock) | ||
680 | { | 682 | { |
681 | struct uart_amba_port *uap = (struct uart_amba_port *)port; | 683 | struct uart_amba_port *uap = (struct uart_amba_port *)port; |
682 | 684 | ||
@@ -1198,6 +1200,8 @@ static void pl011_enable_ms(struct uart_port *port) | |||
1198 | } | 1200 | } |
1199 | 1201 | ||
1200 | static void pl011_rx_chars(struct uart_amba_port *uap) | 1202 | static void pl011_rx_chars(struct uart_amba_port *uap) |
1203 | __releases(&uap->port.lock) | ||
1204 | __acquires(&uap->port.lock) | ||
1201 | { | 1205 | { |
1202 | pl011_fifo_to_tty(uap); | 1206 | pl011_fifo_to_tty(uap); |
1203 | 1207 | ||