diff options
author | Jie Yang <yang.jie@intel.com> | 2015-07-28 16:01:06 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-29 14:55:16 +0100 |
commit | 45f503df1ba445359b94e1758c5e4f2c3460c8e4 (patch) | |
tree | a8a70759c3abbe80acf1563b9b752307320d867e /sound | |
parent | 4b563ea317c2262987f0675abf15066614f536a1 (diff) | |
download | blackbird-op-linux-45f503df1ba445359b94e1758c5e4f2c3460c8e4.tar.gz blackbird-op-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')
-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; |