]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit669b601c9e002dad3aa768a442c1266d060bd672
tree248b7db4c38f5f537a57f62dd099097fd1233c27
parente50b329440183bdf82836f4d7e85af80ebe0f1e8
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