]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: comedi: ni_65xx: hook up command support only if irq is available
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Jul 2014 19:06:57 +0000 (12:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:22:50 +0000 (13:22 -0700)
commit33998d67d5269430f8a52c719817f9e47fef47b0
tree554185e6ca2ad99e017cb8bead07b4d9d10fb2f4
parent98e9f679dd6ecb73084831bf08f5fadb62b0a079
staging: comedi: ni_65xx: hook up command support only if irq is available

Subdevice 3 is used in this driver to provide edge detection of the input
channels.

Move the reset/disable of the interrupts and the request_irq() so that
when subdevice 3 is setup we can conditionally hookup the async command
support only if the irq is available.

Also, remove the noise when the irq is not available.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_65xx.c