ASoC: samsung: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Thu, 22 Dec 2011 02:53:15 +0000 (10:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Dec 2011 11:04:18 +0000 (11:04 +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>
21 files changed:
sound/soc/samsung/goni_wm8994.c
sound/soc/samsung/h1940_uda1380.c
sound/soc/samsung/jive_wm8750.c
sound/soc/samsung/littlemill.c
sound/soc/samsung/ln2440sbc_alc650.c
sound/soc/samsung/lowland.c
sound/soc/samsung/neo1973_wm8753.c
sound/soc/samsung/rx1950_uda1380.c
sound/soc/samsung/s3c24xx_simtec_hermes.c
sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c
sound/soc/samsung/s3c24xx_uda134x.c
sound/soc/samsung/smartq_wm8987.c
sound/soc/samsung/smdk2443_wm9710.c
sound/soc/samsung/smdk_spdif.c
sound/soc/samsung/smdk_wm8580.c
sound/soc/samsung/smdk_wm8580pcm.c
sound/soc/samsung/smdk_wm8994.c
sound/soc/samsung/smdk_wm8994pcm.c
sound/soc/samsung/smdk_wm9713.c
sound/soc/samsung/speyside.c
sound/soc/samsung/tobermory.c

index 84f9c3cf7f3e18df691f4074b24bd804c5665e88..c23c2ae91f58e441ae095ba30f7cbadcd9f1d000 100644 (file)
@@ -244,6 +244,7 @@ static struct snd_soc_dai_link goni_dai[] = {
 
 static struct snd_soc_card goni = {
        .name = "goni",
+       .owner = THIS_MODULE,
        .dai_link = goni_dai,
        .num_links = ARRAY_SIZE(goni_dai),
 
index 03cfa5fcdcca9ea64b3696d76436bd6366bb9c4b..6e3257717c54b24c49fa840e8696ccd169612d86 100644 (file)
@@ -215,6 +215,7 @@ static struct snd_soc_dai_link h1940_uda1380_dai[] = {
 
 static struct snd_soc_card h1940_asoc = {
        .name = "h1940",
+       .owner = THIS_MODULE,
        .dai_link = h1940_uda1380_dai,
        .num_links = ARRAY_SIZE(h1940_uda1380_dai),
 
index 8e523fd9189e562557b36b39671d9e12b7deefa2..1578663a1faa55de01e5d9110ef41dfe9963f4d4 100644 (file)
@@ -127,6 +127,7 @@ static struct snd_soc_dai_link jive_dai = {
 /* jive audio machine driver */
 static struct snd_soc_card snd_soc_machine_jive = {
        .name           = "Jive",
+       .owner          = THIS_MODULE,
        .dai_link       = &jive_dai,
        .num_links      = 1,
 
index 5cea59beec9f6c6d664855ee186df7c2e8df809b..9dd818bde06fb6347d9a6e2f79717ae9766123d8 100644 (file)
@@ -194,6 +194,7 @@ static int littlemill_late_probe(struct snd_soc_card *card)
 
 static struct snd_soc_card littlemill = {
        .name = "Littlemill",
+       .owner = THIS_MODULE,
        .dai_link = littlemill_dai,
        .num_links = ARRAY_SIZE(littlemill_dai),
 
index cde38b8e9dc23917551e67b68acbf6b1f8033aac..69c4a5934a4d936c2dc48af9dcf980c987825ed2 100644 (file)
@@ -34,6 +34,7 @@ static struct snd_soc_dai_link ln2440sbc_dai[] = {
 
 static struct snd_soc_card ln2440sbc = {
        .name = "LN2440SBC",
+       .owner = THIS_MODULE,
        .dai_link = ln2440sbc_dai,
        .num_links = ARRAY_SIZE(ln2440sbc_dai),
 };
index 4216a06b45f5d4fa88b5916197fd5480501815f4..4adff934f771e8ef18741e8b009c4b7eb25628b5 100644 (file)
@@ -177,6 +177,7 @@ static struct snd_soc_dapm_route audio_paths[] = {
 
 static struct snd_soc_card lowland = {
        .name = "Lowland",
+       .owner = THIS_MODULE,
        .dai_link = lowland_dai,
        .num_links = ARRAY_SIZE(lowland_dai),
        .aux_dev = lowland_aux_dev,
index 7207189cd21196aa0dc574aec3bed3b88d9869e9..7ac0ba2025c337b5f313996f00a04c52975cb9a5 100644 (file)
@@ -465,6 +465,7 @@ static const struct gpio neo1973_gta02_gpios[] = {};
 
 static struct snd_soc_card neo1973 = {
        .name = "neo1973",
+       .owner = THIS_MODULE,
        .dai_link = neo1973_dai,
        .num_links = ARRAY_SIZE(neo1973_dai),
        .aux_dev = neo1973_aux_devs,
index 71b4c029fc352eefe5619b1546af5e54e32a8d32..21e12361a9cd137e1ae595a20c50210dcce9283a 100644 (file)
@@ -114,6 +114,7 @@ static const struct snd_soc_dapm_route audio_map[] = {
 
 static struct snd_soc_card rx1950_asoc = {
        .name = "rx1950",
+       .owner = THIS_MODULE,
        .dai_link = rx1950_uda1380_dai,
        .num_links = ARRAY_SIZE(rx1950_uda1380_dai),
 
index 502798100f2196e79e26e99657da78b50279de13..7ace6a87f41b5e673a49f87f1e659be6ea11cd73 100644 (file)
@@ -89,6 +89,7 @@ static struct snd_soc_dai_link simtec_dai_aic33 = {
 /* simtec audio machine driver */
 static struct snd_soc_card snd_soc_machine_simtec_aic33 = {
        .name           = "Simtec-Hermes",
+       .owner          = THIS_MODULE,
        .dai_link       = &simtec_dai_aic33,
        .num_links      = 1,
 
index 89b57b5c3e17c623ec92e96c246c8326b8a1c2c6..c42d5f00b0e1cc2cdc75bfcd625bc02a35aa7825 100644 (file)
@@ -78,6 +78,7 @@ static struct snd_soc_dai_link simtec_dai_aic23 = {
 /* simtec audio machine driver */
 static struct snd_soc_card snd_soc_machine_simtec_aic23 = {
        .name           = "Simtec",
+       .owner          = THIS_MODULE,
        .dai_link       = &simtec_dai_aic23,
        .num_links      = 1,
 
index 62b69fb6a08518821a7848c73c1035e325a20017..d731042e51b07db12aff2adc6685d97f3af6e00e 100644 (file)
@@ -229,6 +229,7 @@ static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = {
 
 static struct snd_soc_card snd_soc_s3c24xx_uda134x = {
        .name = "S3C24XX_UDA134X",
+       .owner = THIS_MODULE,
        .dai_link = &s3c24xx_uda134x_dai_link,
        .num_links = 1,
 };
index a22fc4402802bb36ee20136cfc6e13e622ed60b9..f2dcb424ea255056aa6f3dbe224d9f0bfe14dfe7 100644 (file)
@@ -198,6 +198,7 @@ static struct snd_soc_dai_link smartq_dai[] = {
 
 static struct snd_soc_card snd_soc_smartq = {
        .name = "SmartQ",
+       .owner = THIS_MODULE,
        .dai_link = smartq_dai,
        .num_links = ARRAY_SIZE(smartq_dai),
 
index 8bd1dc5706bf1f423f5d0c7d63a7316c5b9191d0..720ba29bb7e4174e0929a77490f55b7f72c88f09 100644 (file)
@@ -30,6 +30,7 @@ static struct snd_soc_dai_link smdk2443_dai[] = {
 
 static struct snd_soc_card smdk2443 = {
        .name = "SMDK2443",
+       .owner = THIS_MODULE,
        .dai_link = smdk2443_dai,
        .num_links = ARRAY_SIZE(smdk2443_dai),
 };
index e0fd8ad23552d4fcb8822be2c2d6348d27607890..beaa9c15d6978c64f3899596a7239f829fddb63d 100644 (file)
@@ -160,6 +160,7 @@ static struct snd_soc_dai_link smdk_dai = {
 
 static struct snd_soc_card smdk = {
        .name = "SMDK-S/PDIF",
+       .owner = THIS_MODULE,
        .dai_link = &smdk_dai,
        .num_links = 1,
 };
index 81b447823992c46b68e0faadc7ff8085bd8a9339..bff8758e7f20807e38253a6c202d91d5421c402e 100644 (file)
@@ -203,6 +203,7 @@ static struct snd_soc_dai_link smdk_dai[] = {
 
 static struct snd_soc_card smdk = {
        .name = "SMDK-I2S",
+       .owner = THIS_MODULE,
        .dai_link = smdk_dai,
        .num_links = 2,
 
index 49dfafbf3df6d6302537222a6695d62398023df9..fab5322e9f055002a3acb8a1d6b0bae06f457f38 100644 (file)
@@ -143,6 +143,7 @@ static struct snd_soc_dai_link smdk_dai[] = {
 
 static struct snd_soc_card smdk_pcm = {
        .name = "SMDK-PCM",
+       .owner = THIS_MODULE,
        .dai_link = smdk_dai,
        .num_links = 2,
 };
index ad9ac42522e2539faf84c6286cc1614573e441f2..8eb309f23d18247983df33970601a8993747c721 100644 (file)
@@ -144,6 +144,7 @@ static struct snd_soc_dai_link smdk_dai[] = {
 
 static struct snd_soc_card smdk = {
        .name = "SMDK-I2S",
+       .owner = THIS_MODULE,
        .dai_link = smdk_dai,
        .num_links = ARRAY_SIZE(smdk_dai),
 };
index 23c7fb71ddfa25f4559db84971d544fca1b9b2eb..77ecba9351193c0ad2a8e6c6951449192e7bf3d2 100644 (file)
@@ -124,6 +124,7 @@ static struct snd_soc_dai_link smdk_dai[] = {
 
 static struct snd_soc_card smdk_pcm = {
        .name = "SMDK-PCM",
+       .owner = THIS_MODULE,
        .dai_link = smdk_dai,
        .num_links = 1,
 };
index 31c6daf6d4d02ba632783c711f7e3db563f7ef63..8e26a730fcdc787abb7d758e980d12fe6153f133 100644 (file)
@@ -50,6 +50,7 @@ static struct snd_soc_dai_link smdk_dai = {
 
 static struct snd_soc_card smdk = {
        .name = "SMDK WM9713",
+       .owner = THIS_MODULE,
        .dai_link = &smdk_dai,
        .num_links = 1,
 };
index 0222d863632303dd857828510047a0b7ab16c387..f9ab7707a3e46674d464be23f36e9775df82169d 100644 (file)
@@ -291,6 +291,7 @@ static struct snd_soc_dapm_route audio_paths[] = {
 
 static struct snd_soc_card speyside = {
        .name = "Speyside",
+       .owner = THIS_MODULE,
        .dai_link = speyside_dai,
        .num_links = ARRAY_SIZE(speyside_dai),
        .aux_dev = speyside_aux_dev,
index 6f91c65c5a0ecd1b5dc25f3e05ff67cf22b016ba..9199649bf78628db3bab47a61f1fb02ffa2e4902 100644 (file)
@@ -196,6 +196,7 @@ static int tobermory_late_probe(struct snd_soc_card *card)
 
 static struct snd_soc_card tobermory = {
        .name = "Tobermory",
+       .owner = THIS_MODULE,
        .dai_link = tobermory_dai,
        .num_links = ARRAY_SIZE(tobermory_dai),