rockchip:iommu:fix build error when iommu disabled
authorxxm <xxm@rock-chips.com>
Wed, 30 Jul 2014 09:28:33 +0000 (17:28 +0800)
committerxxm <xxm@rock-chips.com>
Wed, 30 Jul 2014 09:28:33 +0000 (17:28 +0800)
include/linux/rockchip/iovmm.h

index 48e212d4dadcd0e5cc15a0f34ada279908e3c17c..d67454fb74dae85507ee8154171e7fe06554bd5d 100755 (executable)
@@ -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 */