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/comedi/Kconfig | |
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/comedi/Kconfig')
-rw-r--r-- | drivers/staging/comedi/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/Kconfig b/drivers/staging/comedi/Kconfig index fd5f9397af90..9eaffd4df154 100644 --- a/drivers/staging/comedi/Kconfig +++ b/drivers/staging/comedi/Kconfig @@ -740,7 +740,7 @@ config COMEDI_ADL_PCI9111 config COMEDI_ADL_PCI9118 tristate "ADLink PCI-9118DG, PCI-9118HG, PCI-9118HR support" select COMEDI_FC - depends on VIRT_TO_BUS + depends on HAS_DMA ---help--- Enable support for ADlink PCI-9118DG, PCI-9118HG, PCI-9118HR cards |