diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-23 01:49:28 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-23 06:32:09 -0500 |
commit | 9b344ce80f8bdf5887d9b5f6d9566d336a8c6ab9 (patch) | |
tree | 1e1fe8332a6c390f1d93156940d45b4b7fa6744e /sound/soc/kirkwood | |
parent | e181d14ac3f304086e41f8e6601f0bd3c75570b2 (diff) |
ASoC: kirkwood: 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>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/kirkwood')
-rw-r--r-- | sound/soc/kirkwood/kirkwood-openrd.c | 1 | ||||
-rw-r--r-- | sound/soc/kirkwood/kirkwood-t5325.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/kirkwood/kirkwood-openrd.c b/sound/soc/kirkwood/kirkwood-openrd.c index d863afb3ee52..8a5a3ddaa5e2 100644 --- a/sound/soc/kirkwood/kirkwood-openrd.c +++ b/sound/soc/kirkwood/kirkwood-openrd.c | |||
@@ -76,6 +76,7 @@ static struct snd_soc_dai_link openrd_client_dai[] = { | |||
76 | 76 | ||
77 | static struct snd_soc_card openrd_client = { | 77 | static struct snd_soc_card openrd_client = { |
78 | .name = "OpenRD Client", | 78 | .name = "OpenRD Client", |
79 | .owner = THIS_MODULE, | ||
79 | .dai_link = openrd_client_dai, | 80 | .dai_link = openrd_client_dai, |
80 | .num_links = ARRAY_SIZE(openrd_client_dai), | 81 | .num_links = ARRAY_SIZE(openrd_client_dai), |
81 | }; | 82 | }; |
diff --git a/sound/soc/kirkwood/kirkwood-t5325.c b/sound/soc/kirkwood/kirkwood-t5325.c index c772b3cf4039..a8930c7c9d1e 100644 --- a/sound/soc/kirkwood/kirkwood-t5325.c +++ b/sound/soc/kirkwood/kirkwood-t5325.c | |||
@@ -98,6 +98,7 @@ static struct snd_soc_dai_link t5325_dai[] = { | |||
98 | 98 | ||
99 | static struct snd_soc_card t5325 = { | 99 | static struct snd_soc_card t5325 = { |
100 | .name = "t5325", | 100 | .name = "t5325", |
101 | .owner = THIS_MODULE, | ||
101 | .dai_link = t5325_dai, | 102 | .dai_link = t5325_dai, |
102 | .num_links = ARRAY_SIZE(t5325_dai), | 103 | .num_links = ARRAY_SIZE(t5325_dai), |
103 | }; | 104 | }; |