serial: omap: move THRE check to transmit_chars()
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 12:45:25 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:17:01 +0000 (09:17 -0700)
commitbf63a0862c964f9015d0d8e3c2ccca7005eebea2
tree356ebd94bc1d288ce84bf04f5d34889511efd711
parent72256cbd13904d4b4dbb16f5ec83a3293bb292c5
serial: omap: move THRE check to transmit_chars()

since all other IRQ types now do all necessary
checks inside their handlers, transmit_chars()
was the only one left expecting serial_omap_irq()
to check THRE for it. We can move THRE check to
transmit_chars() in order to make serial_omap_irq()
more uniform.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c