msm: eva: Deprecate dma_buf_get_flags()

Migrate to new kernel API to retrieve buffer attributes.

Change-Id: I1163c975b8e7f666694394be90f2999eabba1e23
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen
2021-02-18 22:03:28 -08:00
parent 6f2d4b9361
commit 8f044d707a
4 changed files with 63 additions and 71 deletions

View File

@@ -1117,8 +1117,9 @@ struct cvp_internal_buf *cvp_allocate_arp_bufs(struct msm_cvp_inst *inst,
goto fail_kzalloc;
}
rc = msm_cvp_smem_alloc(buffer_size, 1, smem_flags, 0,
&(inst->core->resources), buf->smem);
buf->smem->flags = smem_flags;
rc = msm_cvp_smem_alloc(buffer_size, 1, 0,
&(inst->core->resources), buf->smem);
if (rc) {
dprintk(CVP_ERR, "Failed to allocate ARP memory\n");
goto err_no_mem;
@@ -1252,7 +1253,8 @@ int cvp_allocate_dsp_bufs(struct msm_cvp_inst *inst,
goto fail_kzalloc_smem_cache;
}
rc = msm_cvp_smem_alloc(buffer_size, 1, smem_flags, 0,
buf->smem->flags = smem_flags;
rc = msm_cvp_smem_alloc(buffer_size, 1, 0,
&(inst->core->resources), buf->smem);
if (rc) {
dprintk(CVP_ERR, "Failed to allocate ARP memory\n");