iep/rockchip: revise build fail when CONFIG_RK_IOMMU disabled

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>
This commit is contained in:
alpha lin
2016-03-30 08:40:38 +08:00
parent 0421f89b20
commit 47027ce287
2 changed files with 2 additions and 2 deletions

View File

@@ -1005,10 +1005,10 @@ static int iep_drv_probe(struct platform_device *pdev)
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

View File

@@ -144,8 +144,8 @@ typedef struct iep_service_info {
#ifdef CONFIG_IEP_IOMMU
struct ion_client *ion_client;
struct device *iommu_dev;
#endif
struct device *iommu_dev;
} iep_service_info;
struct iep_reg {