From: H Hartley Sweeten Date: Mon, 20 Oct 2014 18:34:08 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: DMA requires an interrupt X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~818 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b90779b238a8554a465fb99b3828a9e0500ff2a;p=pandora-kernel.git staging: comedi: addi_apci_3120: DMA requires an interrupt An interrupt is required for DMA to work. Factor out the DMA buffer allocation from the (*auto_attach) and only allocate the buffers if the interrupt is available. For aesthetics, also factor the DMA buffer free from the (*detach). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed