aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/au1x
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-07-02 05:19:25 -0400
committerMark Brown <broonie@linaro.org>2013-07-15 06:08:55 -0400
commit35261edca31b0084bb615e6b50dfa5757b26db76 (patch)
tree52c5d94365d045141d6c3cadae504317440cdc44 /sound/soc/au1x
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
ASoC: db1200: 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. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/au1x')
-rw-r--r--sound/soc/au1x/db1200.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c
index a497a0cfeba1..decba87a074c 100644
--- a/sound/soc/au1x/db1200.c
+++ b/sound/soc/au1x/db1200.c
@@ -73,12 +73,14 @@ static struct snd_soc_dai_link db1300_ac97_dai = {
73 73
74static struct snd_soc_card db1300_ac97_machine = { 74static struct snd_soc_card db1300_ac97_machine = {
75 .name = "DB1300_AC97", 75 .name = "DB1300_AC97",
76 .owner = THIS_MODULE,
76 .dai_link = &db1300_ac97_dai, 77 .dai_link = &db1300_ac97_dai,
77 .num_links = 1, 78 .num_links = 1,
78}; 79};
79 80
80static struct snd_soc_card db1550_ac97_machine = { 81static struct snd_soc_card db1550_ac97_machine = {
81 .name = "DB1550_AC97", 82 .name = "DB1550_AC97",
83 .owner = THIS_MODULE,
82 .dai_link = &db1200_ac97_dai, 84 .dai_link = &db1200_ac97_dai,
83 .num_links = 1, 85 .num_links = 1,
84}; 86};
@@ -145,6 +147,7 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
145 147
146static struct snd_soc_card db1300_i2s_machine = { 148static struct snd_soc_card db1300_i2s_machine = {
147 .name = "DB1300_I2S", 149 .name = "DB1300_I2S",
150 .owner = THIS_MODULE,
148 .dai_link = &db1300_i2s_dai, 151 .dai_link = &db1300_i2s_dai,
149 .num_links = 1, 152 .num_links = 1,
150}; 153};
@@ -161,6 +164,7 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
161 164
162static struct snd_soc_card db1550_i2s_machine = { 165static struct snd_soc_card db1550_i2s_machine = {
163 .name = "DB1550_I2S", 166 .name = "DB1550_I2S",
167 .owner = THIS_MODULE,
164 .dai_link = &db1550_i2s_dai, 168 .dai_link = &db1550_i2s_dai,
165 .num_links = 1, 169 .num_links = 1,
166}; 170};