git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3e1715
)
staging: comedi: addi_apci_3120: DMA requires an interrupt
author
H Hartley Sweeten
<hsweeten@visionengravers.com>
Mon, 20 Oct 2014 18:34:08 +0000
(11:34 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:58:35 +0000
(15:58 +0800)
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 <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found