OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
412efa7
)
ASoC: Intel: haswell: fix initialize 'NULL device *' issue
author
Jie Yang
<yang.jie@intel.com>
Tue, 28 Jul 2015 08:01:05 +0000
(16:01 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 29 Jul 2015 13:55:06 +0000
(14:55 +0100)
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>
sound/soc/intel/haswell/sst-haswell-ipc.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/haswell/sst-haswell-ipc.c
b/sound/soc/intel/haswell/sst-haswell-ipc.c
index
f95f271
..
f6efa9d
100644
(file)
--- a/
sound/soc/intel/haswell/sst-haswell-ipc.c
+++ b/
sound/soc/intel/haswell/sst-haswell-ipc.c
@@
-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;