]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: rtd520: allow attaching without interrupt support
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 29 Oct 2012 17:06:03 +0000 (10:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 17:44:39 +0000 (10:44 -0700)
commit90973498d4f1fcb054d9221b247bff91b0f30808
tree4a811c97fa6d25a5d49bf8b296dda3e621897e3e
parent3ff20ef30e0782a860b573f7e9e341424b64003f
staging: comedi: rtd520: allow attaching without interrupt support

Interrupts ares only required for the ai subdevice command support.

Allow the driver to attach to the board even if request_irq() fails.
Only hook up the command support if the interrupt is available.

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