uio: Cleanup irq handling.
authorEric W. Biederman <ebiederm@aristanetworks.com>
Tue, 14 Sep 2010 18:37:36 +0000 (11:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:16:43 +0000 (10:16 -0700)
commit6427a7655afd7f07dfa83736defd1d94656c83e5
tree248b7db4c38f5f537a57f62dd099097fd1233c27
parent70a9156bad9d9d1476df35dde582b9f411bf5914
uio: Cleanup irq handling.

Change the value of UIO_IRQ_NONE -2 to 0.  0 is well defined in the rest
of the kernel as the value to indicate an irq has not been assigned.

Update the calls to request_irq and free_irq to only ignore UIO_IRQ_NONE
and UIO_IRQ_CUSTOM allowing the rest of the kernel's possible irq
numbers to be used.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/uio/uio.c
include/linux/uio_driver.h