diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2014-09-12 10:04:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 15:36:25 -0700 |
commit | 75fbdbf61dd9f68a28a5e233ad1ccdda7c6f94e8 (patch) | |
tree | 0bcac831a4c3d01984829418e75203c35171b056 /drivers/staging/emxx_udc | |
parent | f39f87e9ea944ca07b53d8261ba60bfbf4f097da (diff) |
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>
Diffstat (limited to 'drivers/staging/emxx_udc')
0 files changed, 0 insertions, 0 deletions