serial: sh-sci: Fix for port types without BRI interrupts.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 09:21:06 +0000 (18:21 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 18 May 2012 09:21:06 +0000 (18:21 +0900)
commit0e8963de1fe95e7fbc30c79c1dbc7cb1ea0cf699
tree73d4cd5d27b345751488f3b10799b6b4daf61bae
parentc1dbccc3c7cc70e8211a7ad6ba55ecbc18e77a5a
serial: sh-sci: Fix for port types without BRI interrupts.

In doing the evt2irq() + muxed vector conversion for various port types
it became apparent that some of the legacy port types will presently
error out due to the irq requesting logic attempting to acquire the
non-existent BRI IRQ. This adds some sanity checks to the request/free
path to ensure that non-existence of a source in itself is not an error.

This should restore functionality for legacy PORT_SCI ports.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/tty/serial/sh-sci.c