rockchip: iommu: fix compilation error on arm64
author黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 12:19:22 +0000 (20:19 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 23 Oct 2014 12:19:22 +0000 (20:19 +0800)
drivers/iommu/rockchip-iommu.c

index 4386d0e88bc864469132835ed4087d1f9da5b4e3..b5a815cb1d889a82f7c6659fe84b959840bc0e8a 100755 (executable)
@@ -487,8 +487,12 @@ static bool iommu_reset(void __iomem *base, const char *dbgname)
 
 static inline void pgtable_flush(void *vastart, void *vaend)
 {
+#ifdef CONFIG_ARM
        dmac_flush_range(vastart, vaend);
        outer_flush_range(virt_to_phys(vastart), virt_to_phys(vaend));
+#elif defined(CONFIG_ARM64)
+       __dma_flush_range(vastart, vaend);
+#endif
 }
 
 static void set_fault_handler(struct iommu_drvdata *data,