From: Ian Abbott Date: Fri, 12 Sep 2014 11:19:56 +0000 (+0100) Subject: staging: comedi: addi_apci_3120: use dma_alloc_coherent() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~430 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfd9c8a1782f33d7b67294b2a42587063e61c0c;p=pandora-kernel.git staging: comedi: addi_apci_3120: 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. Note: `struct addi_private` is used by some other ADDI-DATA drivers as well, but this is the only one using the affected members. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed