[alsa-devel] [PATCH 2/5] ASoC: mxs: add .owner to struct snd_soc_card

Lothar Waßmann LW at KARO-electronics.de
Fri Dec 9 14:38:09 CET 2011


This will prevent the module from being removed from underneath its
users

Signed-off-by: Lothar Waßmann <LW at KARO-electronics.de>
---
 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 7fbeaec..db5c184 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.5.6.5



More information about the Alsa-devel mailing list