projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ASoC: wm8962: fix NULL pdata pointer
[firefly-linux-kernel-4.4.55.git]
/
sound
/
soc
/
codecs
/
wm8962.c
diff --git
a/sound/soc/codecs/wm8962.c
b/sound/soc/codecs/wm8962.c
index b1dc7d4264385f9f67ca9df57d15f33c88b09add..e2de9ecfd6417146dc9976f85017bd34be9aef4b 100644
(file)
--- a/
sound/soc/codecs/wm8962.c
+++ b/
sound/soc/codecs/wm8962.c
@@
-3377,7
+3377,7
@@
static int wm8962_probe(struct snd_soc_codec *codec)
{
int ret;
struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec);
- struct wm8962_pdata *pdata =
dev_get_platdata(codec->dev)
;
+ struct wm8962_pdata *pdata =
&wm8962->pdata
;
int i, trigger, irq_pol;
bool dmicclk, dmicdat;