serial: omap: Fix IRQ handling return value

Ensure the Interrupt handling routine return IRQ_HANDLED vs
IRQ_NONE.

Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ruchika Kharwar 2013-07-17 16:29:13 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель a0a490f9df
Коммит 908fd7e566
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -485,7 +485,6 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)
struct uart_omap_port *up = dev_id; struct uart_omap_port *up = dev_id;
unsigned int iir, lsr; unsigned int iir, lsr;
unsigned int type; unsigned int type;
irqreturn_t ret = IRQ_NONE;
int max_count = 256; int max_count = 256;
spin_lock(&up->port.lock); spin_lock(&up->port.lock);
@ -496,7 +495,6 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)
if (iir & UART_IIR_NO_INT) if (iir & UART_IIR_NO_INT)
break; break;
ret = IRQ_HANDLED;
lsr = serial_in(up, UART_LSR); lsr = serial_in(up, UART_LSR);
/* extract IRQ type from IIR register */ /* extract IRQ type from IIR register */
@ -535,7 +533,7 @@ static irqreturn_t serial_omap_irq(int irq, void *dev_id)
pm_runtime_put_autosuspend(up->dev); pm_runtime_put_autosuspend(up->dev);
up->port_activity = jiffies; up->port_activity = jiffies;
return ret; return IRQ_HANDLED;
} }
static unsigned int serial_omap_tx_empty(struct uart_port *port) static unsigned int serial_omap_tx_empty(struct uart_port *port)