mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
ASoC: Intel: haswell: fix initialize 'NULL device *' issue
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>
This commit is contained in:
parent
412efa73dc
commit
4b563ea317
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user