Skip to content

Commit

Permalink
ASoC: imx: 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>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 23, 2011
1 parent 662d4e5 commit 6aff8cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/imx/eukrea-tlv320.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ static struct snd_soc_dai_link eukrea_tlv320_dai = {

static struct snd_soc_card eukrea_tlv320 = {
.name = "cpuimx-audio",
.owner = THIS_MODULE,
.dai_link = &eukrea_tlv320_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/imx/mx27vis-aic32x4.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ static struct snd_soc_dai_link mx27vis_aic32x4_dai = {

static struct snd_soc_card mx27vis_aic32x4 = {
.name = "visstrim_m10-audio",
.owner = THIS_MODULE,
.dai_link = &mx27vis_aic32x4_dai,
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/imx/phycore-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ static struct snd_soc_dai_link imx_phycore_dai_ac97[] = {

static struct snd_soc_card imx_phycore = {
.name = "PhyCORE-ac97-audio",
.owner = THIS_MODULE,
.dai_link = imx_phycore_dai_ac97,
.num_links = ARRAY_SIZE(imx_phycore_dai_ac97),
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/imx/wm1133-ev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ static struct snd_soc_dai_link wm1133_ev1_dai = {

static struct snd_soc_card wm1133_ev1 = {
.name = "WM1133-EV1",
.owner = THIS_MODULE,
.dai_link = &wm1133_ev1_dai,
.num_links = 1,
};
Expand Down

0 comments on commit 6aff8cc

Please sign in to comment.