From: H Hartley Sweeten Date: Wed, 28 May 2014 23:26:51 +0000 (-0700) Subject: staging: comedi: ni_mio_common: use dev->write_subdev X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1994 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e879c315c3050a1b422291e5a7509dc24ec2c7d1;p=pandora-kernel.git staging: comedi: ni_mio_common: use dev->write_subdev The (*attach) in ni_E_init() sets the dev->write_subdev to the analog output 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