diff options
author | Jie Yang <yang.jie@intel.com> | 2015-07-28 16:01:05 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-29 14:55:06 +0100 |
commit | 4b563ea317c2262987f0675abf15066614f536a1 (patch) | |
tree | 36efcacd0c550d86437689c0dd71de1ec41cf7d5 /sound/soc/intel/haswell/sst-haswell-ipc.c | |
parent | 412efa73dcd3bd03c1838c91e094533a95529039 (diff) |
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>
Diffstat (limited to 'sound/soc/intel/haswell/sst-haswell-ipc.c')
-rw-r--r-- | sound/soc/intel/haswell/sst-haswell-ipc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c index f95f271aab0c..f6efa9d4acad 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; |