#ifdef CONFIG_ROCKCHIP_IOMMU
struct device_node * vpu_node =NULL;
int vpu_iommu_enabled = 0;
- vpu_node = of_find_compatible_node(NULL,NULL, "rockchip,vpu_sub");
+ vpu_node = of_find_node_by_name(NULL, "vpu_service");
if(vpu_node){
of_property_read_u32(vpu_node, "iommu_enabled", &vpu_iommu_enabled);
of_property_read_u32(camsys_dev->pdev->dev.of_node, "rockchip,isp,iommu_enable", &iommu_enabled);
+ of_node_put(vpu_node);
if(iommu_enabled != vpu_iommu_enabled){
camsys_err("iommu status not consistent,check the dts file ! isp:%d,vpu:%d",iommu_enabled,vpu_iommu_enabled);
return -EFAULT;