When CONFIG_RK_IOMMU disabled, iep build will throw out error
information for some mismatch definitions.
Change-Id: I0fb22550eaaebd62523d794e45de7b94fae8db63
Signed-off-by: alpha lin <alpha.lin@rock-chips.com>
int ret = 0;
struct resource *res = NULL;
u32 version;
+ struct device_node *np = pdev->dev.of_node;
#if defined(CONFIG_IEP_IOMMU)
u32 iommu_en = 0;
struct device *mmu_dev = NULL;
- struct device_node *np = pdev->dev.of_node;
of_property_read_u32(np, "iommu_enabled", &iommu_en);
#endif
#ifdef CONFIG_IEP_IOMMU
struct ion_client *ion_client;
- struct device *iommu_dev;
#endif
+ struct device *iommu_dev;
} iep_service_info;
struct iep_reg {