projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97bf6af
)
ASoC: wm8731: init mutex in i2c init path
author
Manuel Lauss
<manuel.lauss@gmail.com>
Mon, 19 Jan 2015 07:23:43 +0000
(08:23 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 27 Jan 2015 18:21:26 +0000
(18:21 +0000)
The I2C init path forgot to init the mutex, leading to an oops when
controls are accessed.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm8731.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8731.c
b/sound/soc/codecs/wm8731.c
index b9211b42f6e919f0603eabda95ca332eea71dfb6..b115ed815db97329bb9d6a4c6d7b50faf42f5f40 100644
(file)
--- a/
sound/soc/codecs/wm8731.c
+++ b/
sound/soc/codecs/wm8731.c
@@
-717,6
+717,8
@@
static int wm8731_i2c_probe(struct i2c_client *i2c,
if (wm8731 == NULL)
return -ENOMEM;
+ mutex_init(&wm8731->lock);
+
wm8731->regmap = devm_regmap_init_i2c(i2c, &wm8731_regmap);
if (IS_ERR(wm8731->regmap)) {
ret = PTR_ERR(wm8731->regmap);