alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: mxs: Add .owner to struct snd_soc_card
@ 2011-12-28 12:06 Axel Lin
  2011-12-28 17:21 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-28 12:06 UTC (permalink / raw)
  To: alsa-devel
  Cc: Sascha Hauer, Mark Brown, Liam Girdwood, Wolfram Sang,
	Lothar Waßmann

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
Hi Mark,
I found Lothar's patch is not merged now.
Not sure if you still have Lothar's patch. If not, you can apply this one.

Regards,
Axel
 sound/soc/mxs/mxs-sgtl5000.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/mxs/mxs-sgtl5000.c b/sound/soc/mxs/mxs-sgtl5000.c
index 259278f..60f052b 100644
--- a/sound/soc/mxs/mxs-sgtl5000.c
+++ b/sound/soc/mxs/mxs-sgtl5000.c
@@ -105,6 +105,7 @@ static struct snd_soc_dai_link mxs_sgtl5000_dai[] = {
 
 static struct snd_soc_card mxs_sgtl5000 = {
 	.name		= "mxs_sgtl5000",
+	.owner		= THIS_MODULE,
 	.dai_link	= mxs_sgtl5000_dai,
 	.num_links	= ARRAY_SIZE(mxs_sgtl5000_dai),
 };
-- 
1.7.5.4



_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: mxs: Add .owner to struct snd_soc_card
  2011-12-28 12:06 [PATCH] ASoC: mxs: Add .owner to struct snd_soc_card Axel Lin
@ 2011-12-28 17:21 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-12-28 17:21 UTC (permalink / raw)
  To: Axel Lin
  Cc: alsa-devel, Liam Girdwood, Sascha Hauer, Wolfram Sang,
	Lothar Waßmann

On Wed, Dec 28, 2011 at 08:06:21PM +0800, Axel Lin wrote:
> Add missing .owner of struct snd_soc_card. This prevents the module from being
> removed from underneath its users.

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-28 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 12:06 [PATCH] ASoC: mxs: Add .owner to struct snd_soc_card Axel Lin
2011-12-28 17:21 ` Mark Brown

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).