diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-23 02:53:55 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-23 12:16:29 +0100 |
commit | 662d4e5c247e9feb2814d9eafc160f42d9035978 (patch) | |
tree | 97da2f0f4e88b701e6ff3c26cbbae42602865558 /sound/soc/au1x | |
parent | ASoC: tegra: Add .owner to struct snd_soc_card (diff) | |
download | linux-662d4e5c247e9feb2814d9eafc160f42d9035978.tar.xz linux-662d4e5c247e9feb2814d9eafc160f42d9035978.zip |
ASoC: au1x: 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/au1x')
-rw-r--r-- | sound/soc/au1x/db1000.c | 1 | ||||
-rw-r--r-- | sound/soc/au1x/db1200.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/au1x/db1000.c b/sound/soc/au1x/db1000.c index 094a20723bc6..511d83c11a9a 100644 --- a/sound/soc/au1x/db1000.c +++ b/sound/soc/au1x/db1000.c @@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = { static struct snd_soc_card db1000_ac97 = { .name = "DB1000_AC97", + .owner = THIS_MODULE, .dai_link = &db1000_ac97_dai, .num_links = 1, }; diff --git a/sound/soc/au1x/db1200.c b/sound/soc/au1x/db1200.c index 80733331733f..1c629393df78 100644 --- a/sound/soc/au1x/db1200.c +++ b/sound/soc/au1x/db1200.c @@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = { static struct snd_soc_card db1200_ac97_machine = { .name = "DB1200_AC97", + .owner = THIS_MODULE, .dai_link = &db1200_ac97_dai, .num_links = 1, }; @@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = { static struct snd_soc_card db1200_i2s_machine = { .name = "DB1200_I2S", + .owner = THIS_MODULE, .dai_link = &db1200_i2s_dai, .num_links = 1, }; |