diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-22 08:14:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-22 12:34:33 -0500 |
commit | 338d68db77aaf90eea9e06517272b7d7a83d95a4 (patch) | |
tree | 53ebe00f4c17c0d91d2b166da7d5366edbc1b52d /sound/soc/atmel | |
parent | 4c3c5df05e02bfa774517cebc5b91b07c2a365dc (diff) |
ASoC: atmel: Add .owner to struct snd_soc_card
Missed .owner of struct snd_soc_card will prevent 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/atmel')
-rw-r--r-- | sound/soc/atmel/sam9g20_wm8731.c | 1 | ||||
-rw-r--r-- | sound/soc/atmel/snd-soc-afeb9260.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c index 0377c5451aed..c88351488f45 100644 --- a/sound/soc/atmel/sam9g20_wm8731.c +++ b/sound/soc/atmel/sam9g20_wm8731.c | |||
@@ -189,6 +189,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = { | |||
189 | 189 | ||
190 | static struct snd_soc_card snd_soc_at91sam9g20ek = { | 190 | static struct snd_soc_card snd_soc_at91sam9g20ek = { |
191 | .name = "AT91SAMG20-EK", | 191 | .name = "AT91SAMG20-EK", |
192 | .owner = THIS_MODULE, | ||
192 | .dai_link = &at91sam9g20ek_dai, | 193 | .dai_link = &at91sam9g20ek_dai, |
193 | .num_links = 1, | 194 | .num_links = 1, |
194 | .set_bias_level = at91sam9g20ek_set_bias_level, | 195 | .set_bias_level = at91sam9g20ek_set_bias_level, |
diff --git a/sound/soc/atmel/snd-soc-afeb9260.c b/sound/soc/atmel/snd-soc-afeb9260.c index d427e9217ce4..4ca667d477f9 100644 --- a/sound/soc/atmel/snd-soc-afeb9260.c +++ b/sound/soc/atmel/snd-soc-afeb9260.c | |||
@@ -135,6 +135,7 @@ static struct snd_soc_dai_link afeb9260_dai = { | |||
135 | /* Audio machine driver */ | 135 | /* Audio machine driver */ |
136 | static struct snd_soc_card snd_soc_machine_afeb9260 = { | 136 | static struct snd_soc_card snd_soc_machine_afeb9260 = { |
137 | .name = "AFEB9260", | 137 | .name = "AFEB9260", |
138 | .owner = THIS_MODULE, | ||
138 | .dai_link = &afeb9260_dai, | 139 | .dai_link = &afeb9260_dai, |
139 | .num_links = 1, | 140 | .num_links = 1, |
140 | }; | 141 | }; |