diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-21 20:44:43 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-22 06:04:18 -0500 |
commit | 561c6a172f065fa918d0ff3cecdca1b22dca893f (patch) | |
tree | 64f76d1539b2d14cd7084bd293ba11d4f86cc803 /sound/soc/pxa/tosa.c | |
parent | 5a5049637cf08c4c17805be679c19544bb27fb92 (diff) |
ASoC: pxa: 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/pxa/tosa.c')
-rw-r--r-- | sound/soc/pxa/tosa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c index 3f394de297a2..564ef08a89f2 100644 --- a/sound/soc/pxa/tosa.c +++ b/sound/soc/pxa/tosa.c | |||
@@ -236,6 +236,7 @@ static struct snd_soc_dai_link tosa_dai[] = { | |||
236 | 236 | ||
237 | static struct snd_soc_card tosa = { | 237 | static struct snd_soc_card tosa = { |
238 | .name = "Tosa", | 238 | .name = "Tosa", |
239 | .owner = THIS_MODULE, | ||
239 | .dai_link = tosa_dai, | 240 | .dai_link = tosa_dai, |
240 | .num_links = ARRAY_SIZE(tosa_dai), | 241 | .num_links = ARRAY_SIZE(tosa_dai), |
241 | }; | 242 | }; |