ASoC: mid-x86: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:50:17 +0000 (14:50 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:32:09 +0000 (11:32 +0000)
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>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mid-x86/mfld_machine.c

index 8ae057433968f6f7daa650ad43d72945eb31cc2a..6f77eef0f13164b08507c15a1c554e9a1f35c9dc 100644 (file)
@@ -323,6 +323,7 @@ static struct snd_soc_dai_link mfld_msic_dailink[] = {
 /* SoC card */
 static struct snd_soc_card snd_soc_card_mfld = {
        .name = "medfield_audio",
+       .owner = THIS_MODULE,
        .dai_link = mfld_msic_dailink,
        .num_links = ARRAY_SIZE(mfld_msic_dailink),
 };