From: H Hartley Sweeten Date: Mon, 20 Oct 2014 18:34:25 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: tidy up analog input subdevice init X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~801 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a420f408aa73759b61446503adbd83c88e33966;p=pandora-kernel.git staging: comedi: addi_apci_3120: tidy up analog input subdevice init For aesthetics, add some white space to the analog input subdevice initialization. The async command support in this driver is pretty messed up. I'm not really sure if it actually works yet. Luckly this driver was not setting the SDF_CMD_READ subdev_flag so the command support was not actually getting enabled. The command support only works if an interrupt is available. Refactor the subdevice init so that the command support is only hooked up if we have an interrupt. For now always disable the command support. Once the driver has been cleaned up the command will be enabled. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed