commit | 67fb892cc14aa3159aa68cbda2bd6cc30e2e7fd8 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Thu Dec 05 13:43:35 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Dec 06 13:07:16 2013 -0800 |
tree | 487152872ade3ecacd915ba00db6479239f31d59 | |
parent | 19cf54dd39f2213232ceb4ed1102876a3bd983f1 [diff] |
staging: comedi: adv_pci1710: only init async command members when needed The 'len_chanlist' and 'cancel' members of the comedi_subdevice are only used with async command support. Only initialize them if the irq was sucessfully requested. Also, only init the dev->read_subdev if we have the irq. 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>