Skip to content

Commit

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

0 comments on commit 4b563ea

Please sign in to comment.