diff options
author | Jie Yang <yang.jie@intel.com> | 2015-07-28 10:01:06 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-29 15:55:16 +0200 |
commit | 45f503df1ba445359b94e1758c5e4f2c3460c8e4 (patch) | |
tree | a8a70759c3abbe80acf1563b9b752307320d867e /sound/soc/intel/baytrail | |
parent | ASoC: Intel: haswell: fix initialize 'NULL device *' issue (diff) | |
download | linux-45f503df1ba445359b94e1758c5e4f2c3460c8e4.tar.xz linux-45f503df1ba445359b94e1758c5e4f2c3460c8e4.zip |
ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue
Add initialization for sst_byt.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/baytrail')
-rw-r--r-- | sound/soc/intel/baytrail/sst-baytrail-ipc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c index 4c01bb43928d..5bbaa667bec1 100644 --- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c +++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c @@ -701,6 +701,8 @@ int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata) if (byt == NULL) return -ENOMEM; + byt->dev = dev; + ipc = &byt->ipc; ipc->dev = dev; ipc->ops.tx_msg = byt_tx_msg; |