Commit 662d4e5c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent b16eaf9f
...@@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = { ...@@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = {
static struct snd_soc_card db1000_ac97 = { static struct snd_soc_card db1000_ac97 = {
.name = "DB1000_AC97", .name = "DB1000_AC97",
.owner = THIS_MODULE,
.dai_link = &db1000_ac97_dai, .dai_link = &db1000_ac97_dai,
.num_links = 1, .num_links = 1,
}; };
......
...@@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = { ...@@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = {
static struct snd_soc_card db1200_ac97_machine = { static struct snd_soc_card db1200_ac97_machine = {
.name = "DB1200_AC97", .name = "DB1200_AC97",
.owner = THIS_MODULE,
.dai_link = &db1200_ac97_dai, .dai_link = &db1200_ac97_dai,
.num_links = 1, .num_links = 1,
}; };
...@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = { ...@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
static struct snd_soc_card db1200_i2s_machine = { static struct snd_soc_card db1200_i2s_machine = {
.name = "DB1200_I2S", .name = "DB1200_I2S",
.owner = THIS_MODULE,
.dai_link = &db1200_i2s_dai, .dai_link = &db1200_i2s_dai,
.num_links = 1, .num_links = 1,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment