From: H Hartley Sweeten Date: Mon, 12 Jan 2015 17:56:09 +0000 (-0700) Subject: staging: comedi: dt282x: introduce dt282x_alloc_dma() X-Git-Tag: fixes-v4.0-rc1~99^2~407 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5702e34761bd821709234e7900ddbfd19f1c321;p=pandora-kernel.git staging: comedi: dt282x: introduce dt282x_alloc_dma() The IRA and DMA are optional with this driver but both are required to support async commands. Introduce a helper function to request the IRQ and DMA channel and allocate the buffers. Don't fail the driver attach if the user passed an invalid IRQ or DMA channel or they cannot be requested. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed