commit | eeca0caa84169dcff5e67da6dee74b785f12a4f4 | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jul 14 12:24:00 2014 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 16 13:24:43 2014 -0700 |
tree | 2a9d0c57e870c2dfb779bfa98b035697aa9b08fa | |
parent | caedecfa3a0aea7dc588fd9bb8a0453e74d381c9 [diff] |
staging: comedi: ni_mio_common: only reset the ai/ao subdevices if they exist So of the boards supported by this driver do not have analog inputs and some don't have analog outputs. Move the calls that reset these subdevices during the (*attach) by ni_E_init() so they only happen if the subdevices are present. 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>