commit | 075400af763d1a16bbbaa7e5963b9ede9765e2ad | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Mon Jan 12 10:56:05 2015 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jan 17 14:25:21 2015 -0800 |
tree | a80040cee0caffcc66fc8653f7f6e33632dd162b | |
parent | ceb41be712b68fac4ac834120a80fc3cb8e5ac37 [diff] |
staging: comedi: pcl812: introduce pcl812_alloc_dma() DMA is optional with this driver. Introduce a helper function to request the DMA channel and allocate the buffers. Don't fail the driver attach if the user passed an invalid DMA channel or the channel cannot be requested. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>