ASoC: txx9: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:54:30 +0000 (14:54 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:32:08 +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/txx9/txx9aclc-generic.c

index 9b5e283af51c68e2611dadbbaeae4cd9db9a9ea6..b056a1431ed41024a6d245374e42ff739eb0e365 100644 (file)
@@ -32,6 +32,7 @@ static struct snd_soc_dai_link txx9aclc_generic_dai = {
 
 static struct snd_soc_card txx9aclc_generic_card = {
        .name           = "Generic TXx9 ACLC Audio",
+       .owner          = THIS_MODULE,
        .dai_link       = &txx9aclc_generic_dai,
        .num_links      = 1,
 };