staging: comedi: pcmmio: only hook up async command support if irq is available
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 9 Dec 2013 22:31:16 +0000 (15:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 18:02:14 +0000 (10:02 -0800)
commit5181886e781d0abf58b6f229c205238f17ec788b
tree3b23a50a0ae517ea562e539f5317481c2ab51f44
parentd7c41e83e2c3ae970d41187ae31fad50ccd63856
staging: comedi: pcmmio: only hook up async command support if irq is available

Refactor the board attach so that the async commands support is only
hooked up if the irq is actually 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/pcmmio.c