diff options
author | Jie Yang <yang.jie@intel.com> | 2015-07-28 10:01:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-29 15:55:06 +0200 |
commit | 4b563ea317c2262987f0675abf15066614f536a1 (patch) | |
tree | 36efcacd0c550d86437689c0dd71de1ec41cf7d5 /sound | |
parent | ASoC: Intel: Get correct usage_count value to load firmware (diff) | |
download | linux-4b563ea317c2262987f0675abf15066614f536a1.tar.xz linux-4b563ea317c2262987f0675abf15066614f536a1.zip |
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')
-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; |