Skip to contentSkip to conversation

ASoC: mxs: Add .owner to struct snd_soc_card

PATCH Applied Axel Lin 2 participants 2 messages Dec 28, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: mxs: Add .owner to struct snd_soc_card

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

---
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(-)
sound/soc/mxs/mxs-sgtl5000.c +1 -0
index 259278f..60f052b 100644
@@ -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),
 };
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Applied
#1 lore raw
Quoted 2 lines · Axel Lin

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

Applied, thanks.