Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce6e7805 authored by Banajit Goswami's avatar Banajit Goswami
Browse files

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: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent d88c1e68
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -652,7 +652,6 @@ static int msm_audio_smmu_init(struct device *dev)
		goto fail_attach;
	}

	msm_audio_ion_data.cb_dev = dev;
	msm_audio_ion_data.mapping = mapping;
	INIT_LIST_HEAD(&msm_audio_ion_data.alloc_list);
	mutex_init(&(msm_audio_ion_data.list_mutex));
@@ -759,6 +758,8 @@ static int msm_audio_ion_probe(struct platform_device *pdev)
	if (!rc)
		msm_audio_ion_data.device_status |= MSM_AUDIO_ION_PROBED;

	msm_audio_ion_data.cb_dev = dev;

	return rc;
}