xen/arm: use is_device_dma_coherent
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 20 Nov 2014 10:42:40 +0000 (10:42 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 12:41:51 +0000 (12:41 +0000)
commit2e2a7817fdb6304f8c95c29dae0c93e2727240f4
tree88735f6ed6157a9b2329d35c3d9576a10b4c9ff7
parent3d5391ac6f5e3cb1ab01e23851140d3f6e9ab573
xen/arm: use is_device_dma_coherent

Use is_device_dma_coherent to check whether we need to issue cache
maintenance operations rather than checking on the existence of a
particular dma_ops function for the device.

This is correct because coherent devices don't need cache maintenance
operations - arm_coherent_dma_ops does not set the hooks that we
were previously checking for existance.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
arch/arm/xen/mm32.c