浏览代码

msm: camera: smmu: Use device node to print node name

Printk format %pOFfp is used to print node name,
but we just can use this format to print device node
structure.

CRs-Fixed: 3028231
Change-Id: If703b81acb0b85f0eca7d6dc9ebfd875d86e2f3a
Signed-off-by: chengxue <[email protected]>
Signed-off-by: Depeng Shao <[email protected]>
chengxue 3 年之前
父节点
当前提交
a9396b2953
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      drivers/cam_smmu/cam_smmu_api.c

+ 5 - 2
drivers/cam_smmu/cam_smmu_api.c

@@ -2264,7 +2264,9 @@ static int cam_smmu_map_buffer_validate(struct dma_buf *buf,
 	}
 
 	CAM_DBG(CAM_SMMU, "idx=%d, dma_buf=%pK, dev=%pOFfp, paddr=0x%llx, len=%zu",
-		idx, buf, iommu_cb_set.cb_info[idx].dev, *paddr_ptr, *len_ptr);
+		idx, buf,
+		iommu_cb_set.cb_info[idx].dev->of_node,
+		*paddr_ptr, *len_ptr);
 
 	/* Unmap the mapping in dma region as this is not used anyway */
 	if (region_id == CAM_SMMU_REGION_SHARED)
@@ -3012,7 +3014,8 @@ static int cam_smmu_map_stage2_buffer_and_add_to_list(int idx, int ion_fd,
 	mapping_info->buf = dmabuf;
 
 	CAM_DBG(CAM_SMMU, "idx=%d, ion_fd=%d, i_ino=%lu, dev=%pOFfp, paddr=0x%llx, len=%zu",
-		idx, ion_fd, mapping_info->i_ino, iommu_cb_set.cb_info[idx].dev,
+		idx, ion_fd, mapping_info->i_ino,
+		iommu_cb_set.cb_info[idx].dev->of_node,
 		*paddr_ptr, *len_ptr);
 
 	/* add to the list */