diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-22 08:21:37 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-22 12:34:35 -0500 |
commit | a76a70232914902e47d289b6d3853ac850097573 (patch) | |
tree | b5e65ff7b639ee927751f84f246190b2e015481d | |
parent | 36a16d1ae0735bd95ab86fdf5983ddbaa20c648d (diff) |
ASoC: ep93xx: 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>
-rw-r--r-- | sound/soc/ep93xx/edb93xx.c | 1 | ||||
-rw-r--r-- | sound/soc/ep93xx/simone.c | 1 | ||||
-rw-r--r-- | sound/soc/ep93xx/snappercl15.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/ep93xx/edb93xx.c b/sound/soc/ep93xx/edb93xx.c index 9f6fecdf49e7..bae5cbbbd2b2 100644 --- a/sound/soc/ep93xx/edb93xx.c +++ b/sound/soc/ep93xx/edb93xx.c | |||
@@ -75,6 +75,7 @@ static struct snd_soc_dai_link edb93xx_dai = { | |||
75 | 75 | ||
76 | static struct snd_soc_card snd_soc_edb93xx = { | 76 | static struct snd_soc_card snd_soc_edb93xx = { |
77 | .name = "EDB93XX", | 77 | .name = "EDB93XX", |
78 | .owner = THIS_MODULE, | ||
78 | .dai_link = &edb93xx_dai, | 79 | .dai_link = &edb93xx_dai, |
79 | .num_links = 1, | 80 | .num_links = 1, |
80 | }; | 81 | }; |
diff --git a/sound/soc/ep93xx/simone.c b/sound/soc/ep93xx/simone.c index 1e00b33cc508..dd997094eb30 100644 --- a/sound/soc/ep93xx/simone.c +++ b/sound/soc/ep93xx/simone.c | |||
@@ -34,6 +34,7 @@ static struct snd_soc_dai_link simone_dai = { | |||
34 | 34 | ||
35 | static struct snd_soc_card snd_soc_simone = { | 35 | static struct snd_soc_card snd_soc_simone = { |
36 | .name = "Sim.One", | 36 | .name = "Sim.One", |
37 | .owner = THIS_MODULE, | ||
37 | .dai_link = &simone_dai, | 38 | .dai_link = &simone_dai, |
38 | .num_links = 1, | 39 | .num_links = 1, |
39 | }; | 40 | }; |
diff --git a/sound/soc/ep93xx/snappercl15.c b/sound/soc/ep93xx/snappercl15.c index e97cd5701f51..ccae34a3f280 100644 --- a/sound/soc/ep93xx/snappercl15.c +++ b/sound/soc/ep93xx/snappercl15.c | |||
@@ -93,6 +93,7 @@ static struct snd_soc_dai_link snappercl15_dai = { | |||
93 | 93 | ||
94 | static struct snd_soc_card snd_soc_snappercl15 = { | 94 | static struct snd_soc_card snd_soc_snappercl15 = { |
95 | .name = "Snapper CL15", | 95 | .name = "Snapper CL15", |
96 | .owner = THIS_MODULE, | ||
96 | .dai_link = &snappercl15_dai, | 97 | .dai_link = &snappercl15_dai, |
97 | .num_links = 1, | 98 | .num_links = 1, |
98 | }; | 99 | }; |