Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 225786
b: refs/heads/master
c: 963cc98
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 5, 2011
1 parent f71b081 commit 69414d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffca2b114c6a804d1307781df687e877a373a1c2
refs/heads/master: 963cc981af620c7c07b5f6d1ab998b639e90ecb1
5 changes: 3 additions & 2 deletions trunk/drivers/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,11 @@ static void pl011_modem_status(struct uart_amba_port *uap)
static irqreturn_t pl011_int(int irq, void *dev_id)
{
struct uart_amba_port *uap = dev_id;
unsigned long flags;
unsigned int status, pass_counter = AMBA_ISR_PASS_LIMIT;
int handled = 0;

spin_lock(&uap->port.lock);
spin_lock_irqsave(&uap->port.lock, flags);

status = readw(uap->port.membase + UART011_MIS);
if (status) {
Expand All @@ -275,7 +276,7 @@ static irqreturn_t pl011_int(int irq, void *dev_id)
handled = 1;
}

spin_unlock(&uap->port.lock);
spin_unlock_irqrestore(&uap->port.lock, flags);

return IRQ_RETVAL(handled);
}
Expand Down

0 comments on commit 69414d6

Please sign in to comment.