[alsa-devel] [PATCH 1/2] ASoC: Intel: haswell: fix initialize 'NULL device *' issue
Jie Yang
yang.jie at intel.com
Tue Jul 28 10:01:05 CEST 2015
Add initialization for sst_hsw.dev at init stage, which fix the
'NULL device *' warning issues.
Signed-off-by: Jie Yang <yang.jie at intel.com>
---
sound/soc/intel/haswell/sst-haswell-ipc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c
index f95f271..f6efa9d 100644
--- a/sound/soc/intel/haswell/sst-haswell-ipc.c
+++ b/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;
--
1.9.1
More information about the Alsa-devel
mailing list