summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-23 11:02:59 +0200
committerPaul Mundt <lethal@linux-sh.org>2009-08-23 11:02:59 +0200
commit0858d9c0c591ce9baa1baf72eaf6f67823f3bc25 (patch)
tree1ea697a8e34ff1784572db22bcb5c9da7bbfb40c /drivers/serial
parentPM: Run-time PM platform device bus support (diff)
parentsh: Runtime PM pdev hwblk - kfr2r09 LCDC (diff)
downloadlinux-0858d9c0c591ce9baa1baf72eaf6f67823f3bc25.tar.xz
linux-0858d9c0c591ce9baa1baf72eaf6f67823f3bc25.zip
Merge branch 'sh/hwblk' into sh/pm-runtime
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sh-sci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c
index 8e2feb563347..4cbb87ad070a 100644
--- a/drivers/serial/sh-sci.c
+++ b/drivers/serial/sh-sci.c
@@ -662,10 +662,11 @@ static irqreturn_t sci_rx_interrupt(int irq, void *port)
static irqreturn_t sci_tx_interrupt(int irq, void *ptr)
{
struct uart_port *port = ptr;
+ unsigned long flags;
- spin_lock_irq(&port->lock);
+ spin_lock_irqsave(&port->lock, flags);
sci_transmit_chars(port);
- spin_unlock_irq(&port->lock);
+ spin_unlock_irqrestore(&port->lock, flags);
return IRQ_HANDLED;
}