Skip to content

Commit

Permalink
ASoC: ep93xx: 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 36a16d1 commit a76a702
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/ep93xx/edb93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static struct snd_soc_dai_link edb93xx_dai = {

static struct snd_soc_card snd_soc_edb93xx = {
.name = "EDB93XX",
.owner = THIS_MODULE,
.dai_link = &edb93xx_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/ep93xx/simone.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static struct snd_soc_dai_link simone_dai = {

static struct snd_soc_card snd_soc_simone = {
.name = "Sim.One",
.owner = THIS_MODULE,
.dai_link = &simone_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/ep93xx/snappercl15.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ static struct snd_soc_dai_link snappercl15_dai = {

static struct snd_soc_card snd_soc_snappercl15 = {
.name = "Snapper CL15",
.owner = THIS_MODULE,
.dai_link = &snappercl15_dai,
.num_links = 1,
};
Expand Down

0 comments on commit a76a702

Please sign in to comment.