aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-12-22 20:53:55 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-23 06:16:29 -0500
commit662d4e5c247e9feb2814d9eafc160f42d9035978 (patch)
tree97da2f0f4e88b701e6ff3c26cbbae42602865558 /sound/soc/au1x
parentb16eaf9fd324a70ecca48faa7ef3f349baf7f0cd (diff)
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 <LW@KARO-electronics.de> Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r--sound/soc/au1x/db1000.c1
-rw-r--r--sound/soc/au1x/db1200.c2
2 files changed, 3 insertions, 0 deletions
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 = {
29 29
30static struct snd_soc_card db1000_ac97 = { 30static struct snd_soc_card db1000_ac97 = {
31 .name = "DB1000_AC97", 31 .name = "DB1000_AC97",
32 .owner = THIS_MODULE,
32 .dai_link = &db1000_ac97_dai, 33 .dai_link = &db1000_ac97_dai,
33 .num_links = 1, 34 .num_links = 1,
34}; 35};
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 = {
45 45
46static struct snd_soc_card db1200_ac97_machine = { 46static struct snd_soc_card db1200_ac97_machine = {
47 .name = "DB1200_AC97", 47 .name = "DB1200_AC97",
48 .owner = THIS_MODULE,
48 .dai_link = &db1200_ac97_dai, 49 .dai_link = &db1200_ac97_dai,
49 .num_links = 1, 50 .num_links = 1,
50}; 51};
@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
94 95
95static struct snd_soc_card db1200_i2s_machine = { 96static struct snd_soc_card db1200_i2s_machine = {
96 .name = "DB1200_I2S", 97 .name = "DB1200_I2S",
98 .owner = THIS_MODULE,
97 .dai_link = &db1200_i2s_dai, 99 .dai_link = &db1200_i2s_dai,
98 .num_links = 1, 100 .num_links = 1,
99}; 101};