From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:24:00 +0000 (-0700) Subject: staging: comedi: ni_mio_common: only reset the ai/ao subdevices if they exist X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~672 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeca0caa84169dcff5e67da6dee74b785f12a4f4;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed