]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: comedi: ni_mio_common: only reset the ai/ao subdevices if they exist
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Jul 2014 19:24:00 +0000 (12:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:24:43 +0000 (13:24 -0700)
commiteeca0caa84169dcff5e67da6dee74b785f12a4f4
tree2a9d0c57e870c2dfb779bfa98b035697aa9b08fa
parentcaedecfa3a0aea7dc588fd9bb8a0453e74d381c9
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>
drivers/staging/comedi/drivers/ni_mio_common.c