staging: comedi: ni_labpc: migrate DMA channel init & free
commit86aff4bb11eb721b9be40dcd51f7571fb00edcde
authorIan Abbott <abbotti@mev.co.uk>
Fri, 28 Jun 2013 16:09:20 +0000 (28 17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 21:27:51 +0000 (23 14:27 -0700)
treedc24e2c6986872d8a349993d5bce0557b73d8376
parent9a6386623fc8a67f792b9df56acbd8758e1aa93d
staging: comedi: ni_labpc: migrate DMA channel init & free

Migrate the code for requesting an ISA DMA channel and a DMA buffer, and
the code for freeing them into two new functions in the
"ni_labpc_isadma" module: `labpc_init_dma_chan()` and
`labpc_free_dma_chan()`.  Dummy inline functions are provided in
"ni_labpc_isadma.h" if the "ni_labpc_isadma" module is not being built.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c
drivers/staging/comedi/drivers/ni_labpc_isadma.c
drivers/staging/comedi/drivers/ni_labpc_isadma.h