[PATCH 0/3] staging: comedi: changes for HAS_DMA

Ian Abbott abbotti at mev.co.uk
Fri May 10 13:07:14 UTC 2013


Some changes to remove code that uses `dma_alloc_coherent()` and
`dma_free_coherent()` if `CONFIG_HAS_DMA` is not enabled and to avoid
building modules that really need DMA buffer allocation.

These changes are to avoid having to make the `COMEDI` configuration
option depend on `HAS_DMA` which was proposed by Geert Uytterhoeven's
"[PATCH 12/12] staging: COMEDI should depend on HAS_DMA"
<https://lkml.org/lkml/2013/5/9/458>.

1) staging: comedi: work without HAS_DMA
2) staging: comedi: complain if dma buffer allocation not supported
3) staging: comedi: ni_mio_common: only do counter commands for
   ni_pcimio

 drivers/staging/comedi/Kconfig                 |  9 +++++++++
 drivers/staging/comedi/comedi_buf.c            | 12 ++++++++++++
 drivers/staging/comedi/drivers/ni_mio_common.c | 20 ++++++++++----------
 3 files changed, 31 insertions(+), 10 deletions(-)



More information about the devel mailing list