From: Axel Lin Date: Fri, 23 Dec 2011 01:53:55 +0000 (+0800) Subject: ASoC: au1x: Add .owner to struct snd_soc_card X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=662d4e5c247e9feb2814d9eafc160f42d9035978;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ASoC: au1x: 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. Reported-by: Lothar Waßmann Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/au1x/db1000.c b/sound/soc/au1x/db1000.c index 094a20723bc6..511d83c11a9a 100644 --- a/sound/soc/au1x/db1000.c +++ b/sound/soc/au1x/db1000.c @@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = { static struct snd_soc_card db1000_ac97 = { .name = "DB1000_AC97", + .owner = THIS_MODULE, .dai_link = &db1000_ac97_dai, .num_links = 1, }; diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c index 80733331733f..1c629393df78 100644 --- a/sound/soc/au1x/db1200.c +++ b/sound/soc/au1x/db1200.c @@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = { static struct snd_soc_card db1200_ac97_machine = { .name = "DB1200_AC97", + .owner = THIS_MODULE, .dai_link = &db1200_ac97_dai, .num_links = 1, }; @@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = { static struct snd_soc_card db1200_i2s_machine = { .name = "DB1200_I2S", + .owner = THIS_MODULE, .dai_link = &db1200_i2s_dai, .num_links = 1, };