diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-22 08:23:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-22 12:34:35 -0500 |
commit | b16eaf9fd324a70ecca48faa7ef3f349baf7f0cd (patch) | |
tree | e2d2e5c126e25ded9e00fa0e52c81723383f6cbd /sound/soc/tegra | |
parent | a76a70232914902e47d289b6d3853ac850097573 (diff) |
ASoC: tegra: 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/tegra')
-rw-r--r-- | sound/soc/tegra/tegra_alc5632.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_wm8903.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/trimslice.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c index 9287eb8028fd..4a0e805c4edd 100644 --- a/sound/soc/tegra/tegra_alc5632.c +++ b/sound/soc/tegra/tegra_alc5632.c | |||
@@ -141,6 +141,7 @@ static struct snd_soc_dai_link tegra_alc5632_dai = { | |||
141 | 141 | ||
142 | static struct snd_soc_card snd_soc_tegra_alc5632 = { | 142 | static struct snd_soc_card snd_soc_tegra_alc5632 = { |
143 | .name = "tegra-alc5632", | 143 | .name = "tegra-alc5632", |
144 | .owner = THIS_MODULE, | ||
144 | .dai_link = &tegra_alc5632_dai, | 145 | .dai_link = &tegra_alc5632_dai, |
145 | .num_links = 1, | 146 | .num_links = 1, |
146 | .controls = tegra_alc5632_controls, | 147 | .controls = tegra_alc5632_controls, |
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 4677f2666300..566655e23b7d 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c | |||
@@ -363,6 +363,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = { | |||
363 | 363 | ||
364 | static struct snd_soc_card snd_soc_tegra_wm8903 = { | 364 | static struct snd_soc_card snd_soc_tegra_wm8903 = { |
365 | .name = "tegra-wm8903", | 365 | .name = "tegra-wm8903", |
366 | .owner = THIS_MODULE, | ||
366 | .dai_link = &tegra_wm8903_dai, | 367 | .dai_link = &tegra_wm8903_dai, |
367 | .num_links = 1, | 368 | .num_links = 1, |
368 | 369 | ||
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c index 7d95b7697a73..2bdfc550cff8 100644 --- a/sound/soc/tegra/trimslice.c +++ b/sound/soc/tegra/trimslice.c | |||
@@ -127,6 +127,7 @@ static struct snd_soc_dai_link trimslice_tlv320aic23_dai = { | |||
127 | 127 | ||
128 | static struct snd_soc_card snd_soc_trimslice = { | 128 | static struct snd_soc_card snd_soc_trimslice = { |
129 | .name = "tegra-trimslice", | 129 | .name = "tegra-trimslice", |
130 | .owner = THIS_MODULE, | ||
130 | .dai_link = &trimslice_tlv320aic23_dai, | 131 | .dai_link = &trimslice_tlv320aic23_dai, |
131 | .num_links = 1, | 132 | .num_links = 1, |
132 | 133 | ||