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)
|
if (hsw == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
hsw->dev = dev;
|
||||||
|
|
||||||
ipc = &hsw->ipc;
|
ipc = &hsw->ipc;
|
||||||
ipc->dev = dev;
|
ipc->dev = dev;
|
||||||
ipc->ops.tx_msg = hsw_tx_msg;
|
ipc->ops.tx_msg = hsw_tx_msg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user