ASoC: imx: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:47:08 +0000 (14:47 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:16:43 +0000 (11:16 +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>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/eukrea-tlv320.c
sound/soc/imx/mx27vis-aic32x4.c
sound/soc/imx/phycore-ac97.c
sound/soc/imx/wm1133-ev1.c

index 75fb4b83548bffe68884cd9c7a77c5b5c5659af4..1c1fdd10f73f6b39e39f01a318d3df3bc6ad74f5 100644 (file)
@@ -87,6 +87,7 @@ static struct snd_soc_dai_link eukrea_tlv320_dai = {
 
 static struct snd_soc_card eukrea_tlv320 = {
        .name           = "cpuimx-audio",
+       .owner          = THIS_MODULE,
        .dai_link       = &eukrea_tlv320_dai,
        .num_links      = 1,
 };
index 054110b91d42da07cf6c37a95a8b706d681d411c..3c2eed9094d57b135594ae3cd444c498cf19459a 100644 (file)
@@ -86,6 +86,7 @@ static struct snd_soc_dai_link mx27vis_aic32x4_dai = {
 
 static struct snd_soc_card mx27vis_aic32x4 = {
        .name           = "visstrim_m10-audio",
+       .owner          = THIS_MODULE,
        .dai_link       = &mx27vis_aic32x4_dai,
        .num_links      = 1,
 };
index a7deb5cb2433d575997e61624efa01be616cd2fa..6ac12111de6a4ad108be9a0d39684389cc8b3c49 100644 (file)
@@ -38,6 +38,7 @@ static struct snd_soc_dai_link imx_phycore_dai_ac97[] = {
 
 static struct snd_soc_card imx_phycore = {
        .name           = "PhyCORE-ac97-audio",
+       .owner          = THIS_MODULE,
        .dai_link       = imx_phycore_dai_ac97,
        .num_links      = ARRAY_SIZE(imx_phycore_dai_ac97),
 };
index 490a1260c228c059acdbb6d2f0324c2b782b2431..37480c90e9979265e43171326d4bfab6310d25f5 100644 (file)
@@ -255,6 +255,7 @@ static struct snd_soc_dai_link wm1133_ev1_dai = {
 
 static struct snd_soc_card wm1133_ev1 = {
        .name = "WM1133-EV1",
+       .owner = THIS_MODULE,
        .dai_link = &wm1133_ev1_dai,
        .num_links = 1,
 };