* [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails
@ 2011-03-26 7:53 Axel Lin
2011-03-26 10:56 ` Mark Brown
2011-03-26 15:53 ` Liam Girdwood
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2011-03-26 7:53 UTC (permalink / raw)
To: linux-kernel; +Cc: Misael Lopez Cruz, Liam Girdwood, Mark Brown, alsa-devel
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
sound/soc/codecs/twl6040.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index 482fcdb..255901c 100644
--- 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);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails
2011-03-26 7:53 [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails Axel Lin
@ 2011-03-26 10:56 ` Mark Brown
2011-03-26 15:53 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-03-26 10:56 UTC (permalink / raw)
To: Axel Lin; +Cc: Misael Lopez Cruz, linux-kernel, alsa-devel, Liam Girdwood
On Sat, Mar 26, 2011 at 03:53:58PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails
2011-03-26 7:53 [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails Axel Lin
2011-03-26 10:56 ` Mark Brown
@ 2011-03-26 15:53 ` Liam Girdwood
1 sibling, 0 replies; 3+ messages in thread
From: Liam Girdwood @ 2011-03-26 15:53 UTC (permalink / raw)
To: Axel Lin; +Cc: Misael Lopez Cruz, Mark Brown, linux-kernel, alsa-devel
On Sat, 2011-03-26 at 15:53 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> sound/soc/codecs/twl6040.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
Applied.
Thanks
Liam
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-26 15:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26 7:53 [PATCH] ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails Axel Lin
2011-03-26 10:56 ` Mark Brown
2011-03-26 15:53 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).