dsp: msm_audio_ion: store device pointer locally for all cases
Device pointer needs to be stored during probe of msm_audio_ion platform driver so that the same can be used later for mapping dma_buff allocated for different clients. Store device pointer for both cases where SMMU may be present or absent on a particular platform. Change-Id: I3d3d4ad254d41ac9490ff0dc98b95ffbc3e5042d Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
This commit is contained in:
@@ -652,7 +652,6 @@ static int msm_audio_smmu_init(struct device *dev)
|
|||||||
goto fail_attach;
|
goto fail_attach;
|
||||||
}
|
}
|
||||||
|
|
||||||
msm_audio_ion_data.cb_dev = dev;
|
|
||||||
msm_audio_ion_data.mapping = mapping;
|
msm_audio_ion_data.mapping = mapping;
|
||||||
INIT_LIST_HEAD(&msm_audio_ion_data.alloc_list);
|
INIT_LIST_HEAD(&msm_audio_ion_data.alloc_list);
|
||||||
mutex_init(&(msm_audio_ion_data.list_mutex));
|
mutex_init(&(msm_audio_ion_data.list_mutex));
|
||||||
@@ -759,6 +758,8 @@ exit:
|
|||||||
if (!rc)
|
if (!rc)
|
||||||
msm_audio_ion_data.device_status |= MSM_AUDIO_ION_PROBED;
|
msm_audio_ion_data.device_status |= MSM_AUDIO_ION_PROBED;
|
||||||
|
|
||||||
|
msm_audio_ion_data.cb_dev = dev;
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user