ion: fix dma APIs
__dma_page_cpu_to_dev is a private ARM api that is not available on 3.10 and was never available on other architectures. We can get the same behavior by calling dma_sync_sg_for_device with a scatterlist containing a single page. It's still not quite a kosher use of the dma apis, we still conflate physical addresses with bus addresses, but it should at least compile on all platforms, and work on any platform that doesn't have a physical to bus address translation. Change-Id: I8451c2dae4bf85841015c016640684ac28430a5a Signed-off-by:Colin Cross <ccross@android.com> Git-commit: 51e3580bf9da57da9c860330293b73b0dbb296e0 Git-repo: http://android.googlesource.com/kernel/common/ [mitchelh@codeaurora.org: conflicts due to different cache APIs being used. Earlier we changed __dma_page_cpu_to_dev to arm_dma_ops.sync_single_for_device so there was a conflict at that call site.] Signed-off-by:
Mitchel Humpherys <mitchelh@codeaurora.org>
Loading
Please register or sign in to comment