From: H Hartley Sweeten Date: Mon, 12 Jan 2015 17:55:48 +0000 (-0700) Subject: staging: comedi: ni_at_a2150: introduce a2150_alloc_irq_dma() X-Git-Tag: fixes-v4.0-rc1~99^2~428 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cbb0ef93a63f7c0574d852607af71f348ccc751;p=pandora-kernel.git staging: comedi: ni_at_a2150: introduce a2150_alloc_irq_dma() This driver requires an IRQ and DMA in order to support async commands. For aesthetics, introduce a helper function to request the IRQ and DMA channels and allocate the DMA buffer. Since the async command support is optional, make the helper function handle any request/allocation errors and allow the driver to still attach without async command support. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed