staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device

commit d6b246bb7a upstream.

Use the direction argument passed into begin_cpu_access
and end_cpu_access when calling the dma_sync_sg_for_cpu/device.
The actual cache primitive called depends on the direction
passed in.

Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sushmita Susheelendra 2017-12-15 13:59:13 -07:00 • committed by Greg Kroah-Hartman
commit 7a3ce39c2b