From: xxm Date: Wed, 30 Jul 2014 09:28:33 +0000 (+0800) Subject: rockchip:iommu:fix build error when iommu disabled X-Git-Tag: firefly_0821_release~4948 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3bc178e8bcf63e55852cca0baf8fdd1a3b178217;p=firefly-linux-kernel-4.4.55.git rockchip:iommu:fix build error when iommu disabled --- diff --git a/include/linux/rockchip/iovmm.h b/include/linux/rockchip/iovmm.h index 48e212d4dadc..d67454fb74da 100755 --- a/include/linux/rockchip/iovmm.h +++ b/include/linux/rockchip/iovmm.h @@ -68,7 +68,7 @@ struct device *rockchip_get_sysmmu_device_by_compatible(const char *compt); #define iovmm_unmap(dev, iova) do { } while (0) #define iovmm_map_oto(dev, phys, size) (-ENOSYS) #define iovmm_unmap_oto(dev, phys) do { } while (0) -#define rockchip_get_sysmmu_device_by_compatible(compt) do { } while (0) +#define rockchip_get_sysmmu_device_by_compatible(compt) (NULL) #endif /* CONFIG_ROCKCHIP_IOVMM */