mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-28 17:13:13 -05: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user