ASoC: sh: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:53:32 +0000 (14:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:32:07 +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/sh/fsi-ak4642.c
sound/soc/sh/fsi-da7210.c
sound/soc/sh/fsi-hdmi.c
sound/soc/sh/migor.c
sound/soc/sh/sh7760-ac97.c

index eb52778d0f90c81bfd81cdf0c6edd7a5151215be..97f540aabbdd6c1abd2f1bb51df9af5c1652fb07 100644 (file)
@@ -49,6 +49,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
 };
 
 static struct snd_soc_card fsi_soc_card  = {
+       .owner          = THIS_MODULE,
        .dai_link       = &fsi_dai_link,
        .num_links      = 1,
 };
index f5586b5b0c3b7a135e09468871b272d6bffc158e..1dd3354c7411daff1954240dc6e1901f13ff57eb 100644 (file)
@@ -44,6 +44,7 @@ static struct snd_soc_dai_link fsi_da7210_dai = {
 
 static struct snd_soc_card fsi_soc_card = {
        .name           = "FSI-DA7210",
+       .owner          = THIS_MODULE,
        .dai_link       = &fsi_da7210_dai,
        .num_links      = 1,
 };
index 621aea155ac1a27a7ad9f62478c5fbfee205215b..6e41908323e80b24da3a5c44dd454c643544e777 100644 (file)
@@ -39,6 +39,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
 };
 
 static struct snd_soc_card fsi_soc_card  = {
+       .owner          = THIS_MODULE,
        .dai_link       = &fsi_dai_link,
        .num_links      = 1,
 };
index 6088a6a3238a1adfc3fa5345004eb2cee1956cc5..9d9ad8d61c0a95b46360c7f71052b133a4db0c2d 100644 (file)
@@ -164,6 +164,7 @@ static struct snd_soc_dai_link migor_dai = {
 /* migor audio machine driver */
 static struct snd_soc_card snd_soc_migor = {
        .name = "Migo-R",
+       .owner = THIS_MODULE,
        .dai_link = &migor_dai,
        .num_links = 1,
 };
index df651e8e38de5c66056e99211cdf52a01b858618..4a3568a9bf59015cc2e1692edd29ee77d8291c2a 100644 (file)
@@ -28,6 +28,7 @@ static struct snd_soc_dai_link sh7760_ac97_dai = {
 
 static struct snd_soc_card sh7760_ac97_soc_machine  = {
        .name = "SH7760 AC97",
+       .owner = THIS_MODULE,
        .dai_link = &sh7760_ac97_dai,
        .num_links = 1,
 };