Prechádzať zdrojové kódy

Merge "dsp: msm_audio_ion: store device pointer locally for all cases" into audio-drivers.lnx.3.0

Linux Build Service Account 6 rokov pred
rodič
commit
8af506f8d2
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      dsp/msm_audio_ion.c

+ 2 - 1
dsp/msm_audio_ion.c

@@ -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 @@ exit:
 	if (!rc)
 		msm_audio_ion_data.device_status |= MSM_AUDIO_ION_PROBED;
 
+	msm_audio_ion_data.cb_dev = dev;
+
 	return rc;
 }