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>
This commit is contained in:
parent
4b563ea317
commit
45f503df1b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user