Skip to content

Commit

Permalink
ASoC: au1x: Add .owner to struct snd_soc_card
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 23, 2011
1 parent b16eaf9 commit 662d4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/au1x/db1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/au1x/db1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 662d4e5

Please sign in to comment.