Skip to content

Commit

Permalink
ASoC: blackfin: 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 338d68d commit 30e4953
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/blackfin/bf5xx-ad1836.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ static struct snd_soc_dai_link bf5xx_ad1836_dai[] = {

static struct snd_soc_card bf5xx_ad1836 = {
.name = "bfin-ad1836",
.owner = THIS_MODULE,
.dai_link = &bf5xx_ad1836_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bf5xx-ad193x.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ static struct snd_soc_dai_link bf5xx_ad193x_dai[] = {

static struct snd_soc_card bf5xx_ad193x = {
.name = "bfin-ad193x",
.owner = THIS_MODULE,
.dai_link = &bf5xx_ad193x_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bf5xx-ad1980.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static struct snd_soc_dai_link bf5xx_board_dai[] = {

static struct snd_soc_card bf5xx_board = {
.name = "bfin-ad1980",
.owner = THIS_MODULE,
.dai_link = &bf5xx_board_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bf5xx-ad73311.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ static struct snd_soc_dai_link bf5xx_ad73311_dai[] = {

static struct snd_soc_card bf5xx_ad73311 = {
.name = "bfin-ad73311",
.owner = THIS_MODULE,
.probe = bf5xx_probe,
.dai_link = &bf5xx_ad73311_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,
Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bf5xx-ssm2602.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ static struct snd_soc_dai_link bf5xx_ssm2602_dai[] = {

static struct snd_soc_card bf5xx_ssm2602 = {
.name = "bfin-ssm2602",
.owner = THIS_MODULE,
.dai_link = &bf5xx_ssm2602_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,
};
Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bfin-eval-adau1373.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ static struct snd_soc_dai_link bfin_eval_adau1373_dai = {

static struct snd_soc_card bfin_eval_adau1373 = {
.name = "bfin-eval-adau1373",
.owner = THIS_MODULE,
.dai_link = &bfin_eval_adau1373_dai,
.num_links = 1,

Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bfin-eval-adau1701.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ static struct snd_soc_dai_link bfin_eval_adau1701_dai[] = {

static struct snd_soc_card bfin_eval_adau1701 = {
.name = "bfin-eval-adau1701",
.owner = THIS_MODULE,
.dai_link = &bfin_eval_adau1701_dai[CONFIG_SND_BF5XX_SPORT_NUM],
.num_links = 1,

Expand Down
1 change: 1 addition & 0 deletions sound/soc/blackfin/bfin-eval-adav80x.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ static struct snd_soc_dai_link bfin_eval_adav80x_dais[] = {

static struct snd_soc_card bfin_eval_adav80x = {
.name = "bfin-eval-adav80x",
.owner = THIS_MODULE,
.dai_link = bfin_eval_adav80x_dais,
.num_links = ARRAY_SIZE(bfin_eval_adav80x_dais),

Expand Down

0 comments on commit 30e4953

Please sign in to comment.