ion: fix dma APIs
authorColin Cross <ccross@android.com>
Wed, 18 Sep 2013 17:30:20 +0000 (12:30 -0500)
committerColin Cross <ccross@android.com>
Sat, 16 Nov 2013 00:10:14 +0000 (16:10 -0800)
commit51e3580bf9da57da9c860330293b73b0dbb296e0
tree3c8a11e23d9cdb26f9ebdf9cc6492695c0f5ea51
parent49bdc418a3c1129d49fe92d89cf77111584fb51f
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>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_chunk_heap.c
drivers/staging/android/ion/ion_page_pool.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/ion/ion_system_heap.c