projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a3536
)
ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails
author
Axel Lin
<axel.lin@gmail.com>
Sat, 26 Mar 2011 07:53:58 +0000
(15:53 +0800)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
Sat, 26 Mar 2011 15:36:56 +0000
(15:36 +0000)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/twl6040.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/twl6040.c
b/sound/soc/codecs/twl6040.c
index
482fcdb
..
255901c
100644
(file)
--- a/
sound/soc/codecs/twl6040.c
+++ b/
sound/soc/codecs/twl6040.c
@@
-1629,8
+1629,10
@@
static int twl6040_probe(struct snd_soc_codec *codec)
priv->naudint = naudint;
priv->workqueue = create_singlethread_workqueue("twl6040-codec");
- if (!priv->workqueue)
+ if (!priv->workqueue) {
+ ret = -ENOMEM;
goto work_err;
+ }
INIT_DELAYED_WORK(&priv->delayed_work, twl6040_accessory_work);