projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b563ea
)
ASoC: Intel: sst_byt: fix initialize 'NULL device *' issue
author
Jie Yang
<yang.jie@intel.com>
Tue, 28 Jul 2015 08:01:06 +0000
(16:01 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 29 Jul 2015 13:55:16 +0000
(14:55 +0100)
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>
sound/soc/intel/baytrail/sst-baytrail-ipc.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/baytrail/sst-baytrail-ipc.c
b/sound/soc/intel/baytrail/sst-baytrail-ipc.c
index 4c01bb43928d136c93963730f1149f9d9bf4a66b..5bbaa667bec1c608c35968c983eaeece020ad8db 100644
(file)
--- a/
sound/soc/intel/baytrail/sst-baytrail-ipc.c
+++ b/
sound/soc/intel/baytrail/sst-baytrail-ipc.c
@@
-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;