]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: adl_pci9118: use dma_alloc_coherent()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 12 Sep 2014 09:04:44 +0000 (10:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 22:36:25 +0000 (15:36 -0700)
commit75fbdbf61dd9f68a28a5e233ad1ccdda7c6f94e8
tree0bcac831a4c3d01984829418e75203c35171b056
parentf39f87e9ea944ca07b53d8261ba60bfbf4f097da
staging: comedi: adl_pci9118: use dma_alloc_coherent()

Use `dma_alloc_coherent()` to allocate the DMA buffers instead of
using `__get_free_pages()` to allocate and `virt_to_bus()` to get the
hardware address.  The coherent buffers are fairly small - at most 4
pages (although there are two of them).  Use of `virt_to_bus()` is
discouraged.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/Kconfig
drivers/staging/comedi/drivers/adl_pci9118.c