From: H Hartley Sweeten Date: Wed, 28 May 2014 23:26:50 +0000 (-0700) Subject: staging: comedi: ni_mio_common: use dev->read_subdev X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1995 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dce16e51aaf6e948d982a310f0338a1b395b6ca;p=pandora-kernel.git staging: comedi: ni_mio_common: use dev->read_subdev The (*attach) in ni_E_init() sets the dev->read_subdev to the analog input subdevice. Use that instead of accessing the dev->subdevices array directly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed