Browse Source

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.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Lothar Waßmann 13 years ago
parent
commit
a5b683489f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      sound/soc/mxs/mxs-sgtl5000.c

+ 1 - 0
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),
 };