Skip to content

Commit

Permalink
ASoC: sh: 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 23bd1ce commit 4a7042e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/sh/fsi-ak4642.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
};

static struct snd_soc_card fsi_soc_card = {
.owner = THIS_MODULE,
.dai_link = &fsi_dai_link,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sh/fsi-da7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ static struct snd_soc_dai_link fsi_da7210_dai = {

static struct snd_soc_card fsi_soc_card = {
.name = "FSI-DA7210",
.owner = THIS_MODULE,
.dai_link = &fsi_da7210_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sh/fsi-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
};

static struct snd_soc_card fsi_soc_card = {
.owner = THIS_MODULE,
.dai_link = &fsi_dai_link,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sh/migor.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ static struct snd_soc_dai_link migor_dai = {
/* migor audio machine driver */
static struct snd_soc_card snd_soc_migor = {
.name = "Migo-R",
.owner = THIS_MODULE,
.dai_link = &migor_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sh/sh7760-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ static struct snd_soc_dai_link sh7760_ac97_dai = {

static struct snd_soc_card sh7760_ac97_soc_machine = {
.name = "SH7760 AC97",
.owner = THIS_MODULE,
.dai_link = &sh7760_ac97_dai,
.num_links = 1,
};
Expand Down

0 comments on commit 4a7042e

Please sign in to comment.