diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-23 01:47:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-23 06:16:43 -0500 |
commit | 6aff8ccb0cdd14be2acaa7cf397842005752b0f3 (patch) | |
tree | 5f4e05f3a0e44e495ca9268dd4697a03bcc87f5a /sound/soc/imx | |
parent | 662d4e5c247e9feb2814d9eafc160f42d9035978 (diff) |
ASoC: imx: 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>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/imx')
-rw-r--r-- | sound/soc/imx/eukrea-tlv320.c | 1 | ||||
-rw-r--r-- | sound/soc/imx/mx27vis-aic32x4.c | 1 | ||||
-rw-r--r-- | sound/soc/imx/phycore-ac97.c | 1 | ||||
-rw-r--r-- | sound/soc/imx/wm1133-ev1.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/imx/eukrea-tlv320.c b/sound/soc/imx/eukrea-tlv320.c index 75fb4b83548b..1c1fdd10f73f 100644 --- a/sound/soc/imx/eukrea-tlv320.c +++ b/sound/soc/imx/eukrea-tlv320.c | |||
@@ -87,6 +87,7 @@ static struct snd_soc_dai_link eukrea_tlv320_dai = { | |||
87 | 87 | ||
88 | static struct snd_soc_card eukrea_tlv320 = { | 88 | static struct snd_soc_card eukrea_tlv320 = { |
89 | .name = "cpuimx-audio", | 89 | .name = "cpuimx-audio", |
90 | .owner = THIS_MODULE, | ||
90 | .dai_link = &eukrea_tlv320_dai, | 91 | .dai_link = &eukrea_tlv320_dai, |
91 | .num_links = 1, | 92 | .num_links = 1, |
92 | }; | 93 | }; |
diff --git a/sound/soc/imx/mx27vis-aic32x4.c b/sound/soc/imx/mx27vis-aic32x4.c index 054110b91d42..3c2eed9094d5 100644 --- a/sound/soc/imx/mx27vis-aic32x4.c +++ b/sound/soc/imx/mx27vis-aic32x4.c | |||
@@ -86,6 +86,7 @@ static struct snd_soc_dai_link mx27vis_aic32x4_dai = { | |||
86 | 86 | ||
87 | static struct snd_soc_card mx27vis_aic32x4 = { | 87 | static struct snd_soc_card mx27vis_aic32x4 = { |
88 | .name = "visstrim_m10-audio", | 88 | .name = "visstrim_m10-audio", |
89 | .owner = THIS_MODULE, | ||
89 | .dai_link = &mx27vis_aic32x4_dai, | 90 | .dai_link = &mx27vis_aic32x4_dai, |
90 | .num_links = 1, | 91 | .num_links = 1, |
91 | }; | 92 | }; |
diff --git a/sound/soc/imx/phycore-ac97.c b/sound/soc/imx/phycore-ac97.c index a7deb5cb2433..6ac12111de6a 100644 --- a/sound/soc/imx/phycore-ac97.c +++ b/sound/soc/imx/phycore-ac97.c | |||
@@ -38,6 +38,7 @@ static struct snd_soc_dai_link imx_phycore_dai_ac97[] = { | |||
38 | 38 | ||
39 | static struct snd_soc_card imx_phycore = { | 39 | static struct snd_soc_card imx_phycore = { |
40 | .name = "PhyCORE-ac97-audio", | 40 | .name = "PhyCORE-ac97-audio", |
41 | .owner = THIS_MODULE, | ||
41 | .dai_link = imx_phycore_dai_ac97, | 42 | .dai_link = imx_phycore_dai_ac97, |
42 | .num_links = ARRAY_SIZE(imx_phycore_dai_ac97), | 43 | .num_links = ARRAY_SIZE(imx_phycore_dai_ac97), |
43 | }; | 44 | }; |
diff --git a/sound/soc/imx/wm1133-ev1.c b/sound/soc/imx/wm1133-ev1.c index 490a1260c228..37480c90e997 100644 --- a/sound/soc/imx/wm1133-ev1.c +++ b/sound/soc/imx/wm1133-ev1.c | |||
@@ -255,6 +255,7 @@ static struct snd_soc_dai_link wm1133_ev1_dai = { | |||
255 | 255 | ||
256 | static struct snd_soc_card wm1133_ev1 = { | 256 | static struct snd_soc_card wm1133_ev1 = { |
257 | .name = "WM1133-EV1", | 257 | .name = "WM1133-EV1", |
258 | .owner = THIS_MODULE, | ||
258 | .dai_link = &wm1133_ev1_dai, | 259 | .dai_link = &wm1133_ev1_dai, |
259 | .num_links = 1, | 260 | .num_links = 1, |
260 | }; | 261 | }; |