alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ASoC: au1x: Add .owner to struct snd_soc_card
@ 2011-12-23  1:53 Axel Lin
  2011-12-23 11:17 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-23  1:53 UTC (permalink / raw)
  To: alsa-devel
  Cc: Manuel Lauss, Mark Brown, Liam Girdwood, Ralf Baechle,
	Lothar Waßmann

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

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
v2: regenerate the patch against asoc tree.

 sound/soc/au1x/db1000.c |    1 +
 sound/soc/au1x/db1200.c |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sound/soc/au1x/db1000.c b/sound/soc/au1x/db1000.c
index 127477a..8387d42 100644
--- a/sound/soc/au1x/db1000.c
+++ b/sound/soc/au1x/db1000.c
@@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = {
 
 static struct snd_soc_card db1000_ac97 = {
 	.name		= "DB1000_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1000_ac97_dai,
 	.num_links	= 1,
 };
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index 289312c..15e5138 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = {
 
 static struct snd_soc_card db1200_ac97_machine = {
 	.name		= "DB1200_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1200_ac97_dai,
 	.num_links	= 1,
 };
@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
 
 static struct snd_soc_card db1200_i2s_machine = {
 	.name		= "DB1200_I2S",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1200_i2s_dai,
 	.num_links	= 1,
 };
-- 
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 v2] ASoC: au1x: Add .owner to struct snd_soc_card
  2011-12-23  1:53 [PATCH v2] ASoC: au1x: Add .owner to struct snd_soc_card Axel Lin
@ 2011-12-23 11:17 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-12-23 11:17 UTC (permalink / raw)
  To: Axel Lin
  Cc: alsa-devel, Liam Girdwood, Manuel Lauss, Ralf Baechle,
	Lothar Waßmann

On Fri, Dec 23, 2011 at 09:53:55AM +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-23 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23  1:53 [PATCH v2] ASoC: au1x: Add .owner to struct snd_soc_card Axel Lin
2011-12-23 11:17 ` 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).