You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user