Skip to content

Commit

Permalink
ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jie Yang authored and Mark Brown committed Jul 29, 2015
1 parent 4b563ea commit 45f503d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/intel/baytrail/sst-baytrail-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 45f503d

Please sign in to comment.