Skip to content

Commit

Permalink
ASoC: atmel: Add .owner to struct snd_soc_card
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 22, 2011
1 parent 4c3c5df commit 338d68d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/atmel/sam9g20_wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = {

static struct snd_soc_card snd_soc_at91sam9g20ek = {
.name = "AT91SAMG20-EK",
.owner = THIS_MODULE,
.dai_link = &at91sam9g20ek_dai,
.num_links = 1,
.set_bias_level = at91sam9g20ek_set_bias_level,
Expand Down
1 change: 1 addition & 0 deletions sound/soc/atmel/snd-soc-afeb9260.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ static struct snd_soc_dai_link afeb9260_dai = {
/* Audio machine driver */
static struct snd_soc_card snd_soc_machine_afeb9260 = {
.name = "AFEB9260",
.owner = THIS_MODULE,
.dai_link = &afeb9260_dai,
.num_links = 1,
};
Expand Down

0 comments on commit 338d68d

Please sign in to comment.