mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user