Kaynağa Gözat

ASoC: Intel: haswell: fix initialize 'NULL device *' issue

Add initialization for sst_hsw.dev at init stage, which fix the
'NULL device *' warning issues.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Jie Yang 10 yıl önce
ebeveyn
işleme
4b563ea317
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      sound/soc/intel/haswell/sst-haswell-ipc.c

+ 2 - 0
sound/soc/intel/haswell/sst-haswell-ipc.c

@@ -2119,6 +2119,8 @@ int sst_hsw_dsp_init(struct device *dev, struct sst_pdata *pdata)
 	if (hsw == NULL)
 		return -ENOMEM;
 
+	hsw->dev = dev;
+
 	ipc = &hsw->ipc;
 	ipc->dev = dev;
 	ipc->ops.tx_msg = hsw_tx_msg;