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 75fb4b8..1c1fdd1 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 054110b..3c2eed9 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 a7deb5c..6ac1211 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 490a126..37480c9 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,
 };