Skip to content

Commit

Permalink
ASoC: kirkwood: 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 e181d14 commit 9b344ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/kirkwood/kirkwood-openrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ static struct snd_soc_dai_link openrd_client_dai[] = {

static struct snd_soc_card openrd_client = {
.name = "OpenRD Client",
.owner = THIS_MODULE,
.dai_link = openrd_client_dai,
.num_links = ARRAY_SIZE(openrd_client_dai),
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/kirkwood/kirkwood-t5325.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static struct snd_soc_dai_link t5325_dai[] = {

static struct snd_soc_card t5325 = {
.name = "t5325",
.owner = THIS_MODULE,
.dai_link = t5325_dai,
.num_links = ARRAY_SIZE(t5325_dai),
};
Expand Down

0 comments on commit 9b344ce

Please sign in to comment.