ASoC: blackfin: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Thu, 22 Dec 2011 13:17:22 +0000 (21:17 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Dec 2011 17:34:34 +0000 (17:34 +0000)
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>
sound/soc/blackfin/bf5xx-ad1836.c
sound/soc/blackfin/bf5xx-ad193x.c
sound/soc/blackfin/bf5xx-ad1980.c
sound/soc/blackfin/bf5xx-ad73311.c
sound/soc/blackfin/bf5xx-ssm2602.c
sound/soc/blackfin/bfin-eval-adau1373.c
sound/soc/blackfin/bfin-eval-adau1701.c
sound/soc/blackfin/bfin-eval-adav80x.c

index f79d1655e035d845fc0d8118366df2cd2f397989..60962ce6cd4d06c96536ca9ee124a8ac66e10467 100644 (file)
@@ -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,
 };
index 5956584ea3a425eae1621679848aed9d4fdd6620..2d8d82dbc159ef6326b553e8ce2916fd0c1e771f 100644 (file)
@@ -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,
 };
index 06a84b211b52bcdcb08783ae9623e9ab2ecb9f35..b30f88bbd70332ab09fe9a116e21a6278e6c74d5 100644 (file)
@@ -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,
 };
index b94eb7ef7d1669d2e3ab8808f01fb8d2b2fab0ab..8e49508596dad59911ab3ac3c4ae1baa006cc678 100644 (file)
@@ -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,
index 767e772a815de3b7b1bc2a6550df126b9525bda1..0303032380420eb7bd12d198ca4be3f5ea684149 100644 (file)
@@ -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,
 };
index 85ed39abe10eb2c41eedef391705edef5519b52d..26b271c62efa392825f95c64c627fc7fc63d1a68 100644 (file)
@@ -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,
 
index 1a88fe9ce34ce22a0a586784655298d4aaaf7dd4..c0064fa1dca653c7395062b5ee0076b5f24fbce2 100644 (file)
@@ -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,
 
index 0bc995fb6283a6e22f18aa3542059793525c9175..4ef079f95e2ede670a97f782fad67e573a516eed 100644 (file)
@@ -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),