Skip to contentSkip to conversation

ASoC: atmel: Add .owner to struct snd_soc_card

PATCH Applied Axel Lin 4 participants 10 messages Dec 22, 2011 – Dec 31, 2011

Subsystems (5)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/6 ASoC: atmel: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/atmel/sam9g20_wm8731.c   |    1 +
 sound/soc/atmel/snd-soc-afeb9260.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/atmel/sam9g20_wm8731.c +1 -0
index 0377c54..c883514 100644
@@ -189,6 +189,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = {
 
 static struct snd_soc_card snd_soc_at91sam9g20ek = {
 	.name = "AT91SAMG20-EK",
+	.owner = THIS_MODULE,
 	.dai_link = &at91sam9g20ek_dai,
 	.num_links = 1,
 	.set_bias_level = at91sam9g20ek_set_bias_level,
sound/soc/atmel/snd-soc-afeb9260.c +1 -0
index d427e92..4ca667d 100644
@@ -135,6 +135,7 @@ static struct snd_soc_dai_link afeb9260_dai = {
 /* Audio machine driver */
 static struct snd_soc_card snd_soc_machine_afeb9260 = {
 	.name = "AFEB9260",
+	.owner = THIS_MODULE,
 	.dai_link = &afeb9260_dai,
 	.num_links = 1,
 };
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
author
#1 lore raw

PATCH 2/6 ASoC: au1x: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/au1x/db1000.c |    1 +
 sound/soc/au1x/db1200.c |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
sound/soc/au1x/db1000.c +1 -0
index 094a207..511d83c 100644
@@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = {
 
 static struct snd_soc_card db1000_ac97 = {
 	.name		= "DB1000_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1000_ac97_dai,
 	.num_links	= 1,
 };
sound/soc/au1x/db1200.c +6 -0
index ec725f6..c8620b7 100644
@@ -57,6 +57,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = {
 
 static struct snd_soc_card db1200_ac97_machine = {
 	.name		= "DB1200_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1200_ac97_dai,
 	.num_links	= 1,
 };
@@ -72,12 +73,14 @@ static struct snd_soc_dai_link db1300_ac97_dai = {
 
 static struct snd_soc_card db1300_ac97_machine = {
 	.name		= "DB1300_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1300_ac97_dai,
 	.num_links	= 1,
 };
 
 static struct snd_soc_card db1550_ac97_machine = {
 	.name		= "DB1550_AC97",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1200_ac97_dai,
 	.num_links	= 1,
 };
@@ -127,6 +130,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
 
 static struct snd_soc_card db1200_i2s_machine = {
 	.name		= "DB1200_I2S",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1200_i2s_dai,
 	.num_links	= 1,
 };
@@ -143,6 +147,7 @@ static struct snd_soc_dai_link db1300_i2s_dai = {
 
 static struct snd_soc_card db1300_i2s_machine = {
 	.name		= "DB1300_I2S",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1300_i2s_dai,
 	.num_links	= 1,
 };
@@ -159,6 +164,7 @@ static struct snd_soc_dai_link db1550_i2s_dai = {
 
 static struct snd_soc_card db1550_i2s_machine = {
 	.name		= "DB1550_I2S",
+	.owner		= THIS_MODULE,
 	.dai_link	= &db1550_i2s_dai,
 	.num_links	= 1,
 };
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw

Re: [PATCH 2/6] ASoC: au1x: Add .owner to struct snd_soc_card

Quoted 2 lines · Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

This doesn't apply.

author
#3 lore raw

PATCH 3/6 ASoC: blackfin: Add .owner to struct snd_soc_card

In reply to Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/blackfin/bf5xx-ad1836.c       |    1 +
 sound/soc/blackfin/bf5xx-ad193x.c       |    1 +
 sound/soc/blackfin/bf5xx-ad1980.c       |    1 +
 sound/soc/blackfin/bf5xx-ad73311.c      |    1 +
 sound/soc/blackfin/bf5xx-ssm2602.c      |    1 +
 sound/soc/blackfin/bfin-eval-adau1373.c |    1 +
 sound/soc/blackfin/bfin-eval-adau1701.c |    1 +
 sound/soc/blackfin/bfin-eval-adav80x.c  |    1 +
 8 files changed, 8 insertions(+), 0 deletions(-)
sound/soc/blackfin/bf5xx-ad1836.c +1 -0
index f79d165..60962ce 100644
@@ -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,
 };
sound/soc/blackfin/bf5xx-ad193x.c +1 -0
index 5956584..2d8d82d 100644
@@ -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,
 };
sound/soc/blackfin/bf5xx-ad1980.c +1 -0
index 06a84b2..b30f88b 100644
@@ -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,
 };
sound/soc/blackfin/bf5xx-ad73311.c +1 -0
index b94eb7e..8e49508 100644
@@ -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,
sound/soc/blackfin/bf5xx-ssm2602.c +1 -0
index 767e772..0303032 100644
@@ -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,
 };
sound/soc/blackfin/bfin-eval-adau1373.c +1 -0
index 85ed39a..26b271c 100644
@@ -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,
 
sound/soc/blackfin/bfin-eval-adau1701.c +1 -0
index 1a88fe9..c0064fa 100644
@@ -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,
 
sound/soc/blackfin/bfin-eval-adav80x.c +1 -0
index 0bc995f..4ef079f 100644
@@ -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),
 
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Acked-by on v1 3/6
#4 lore raw

Re: [PATCH 3/6] ASoC: blackfin: Add .owner to struct snd_soc_card

Quoted 2 lines · On Thursday 22 December 2011 08:17:22 Axel Lin wrote:

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

-mike

author
#5 lore raw

PATCH 4/6 ASoC: davinci: Add .owner to struct snd_soc_card

In reply to Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/davinci/davinci-evm.c    |    6 ++++++
 sound/soc/davinci/davinci-sffsdr.c |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
sound/soc/davinci/davinci-evm.c +6 -0
index f78c3f0..10a2d8c 100644
@@ -242,6 +242,7 @@ static struct snd_soc_dai_link da850_evm_dai = {
 /* davinci dm6446 evm audio machine driver */
 static struct snd_soc_card dm6446_snd_soc_card_evm = {
 	.name = "DaVinci DM6446 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = &dm6446_evm_dai,
 	.num_links = 1,
 };
@@ -249,6 +250,7 @@ static struct snd_soc_card dm6446_snd_soc_card_evm = {
 /* davinci dm355 evm audio machine driver */
 static struct snd_soc_card dm355_snd_soc_card_evm = {
 	.name = "DaVinci DM355 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = &dm355_evm_dai,
 	.num_links = 1,
 };
@@ -256,6 +258,7 @@ static struct snd_soc_card dm355_snd_soc_card_evm = {
 /* davinci dm365 evm audio machine driver */
 static struct snd_soc_card dm365_snd_soc_card_evm = {
 	.name = "DaVinci DM365 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = &dm365_evm_dai,
 	.num_links = 1,
 };
@@ -263,18 +266,21 @@ static struct snd_soc_card dm365_snd_soc_card_evm = {
 /* davinci dm6467 evm audio machine driver */
 static struct snd_soc_card dm6467_snd_soc_card_evm = {
 	.name = "DaVinci DM6467 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = dm6467_evm_dai,
 	.num_links = ARRAY_SIZE(dm6467_evm_dai),
 };
 
 static struct snd_soc_card da830_snd_soc_card = {
 	.name = "DA830/OMAP-L137 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = &da830_evm_dai,
 	.num_links = 1,
 };
 
 static struct snd_soc_card da850_snd_soc_card = {
 	.name = "DA850/OMAP-L138 EVM",
+	.owner = THIS_MODULE,
 	.dai_link = &da850_evm_dai,
 	.num_links = 1,
 };
sound/soc/davinci/davinci-sffsdr.c +1 -0
index 0fe558c..f71175b 100644
@@ -93,6 +93,7 @@ static struct snd_soc_dai_link sffsdr_dai = {
 /* davinci-sffsdr audio machine driver */
 static struct snd_soc_card snd_soc_sffsdr = {
 	.name = "DaVinci SFFSDR",
+	.owner = THIS_MODULE,
 	.dai_link = &sffsdr_dai,
 	.num_links = 1,
 };
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
author
#6 lore raw

PATCH 5/6 ASoC: ep93xx: Add .owner to struct snd_soc_card

In reply to Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/ep93xx/edb93xx.c     |    1 +
 sound/soc/ep93xx/simone.c      |    1 +
 sound/soc/ep93xx/snappercl15.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/ep93xx/edb93xx.c +1 -0
index 9f6fecd..bae5cbb 100644
@@ -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,
 };
sound/soc/ep93xx/simone.c +1 -0
index 1e00b33..dd99709 100644
@@ -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,
 };
sound/soc/ep93xx/snappercl15.c +1 -0
index e97cd57..ccae34a 100644
@@ -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,
 };
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Acked-by on v1 5/6
#7 lore raw

Re: [PATCH 5/6] ASoC: ep93xx: Add .owner to struct snd_soc_card

Quoted 5 lines · Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

Thanks!

Quoted 46 lines
---
 sound/soc/ep93xx/edb93xx.c     |    1 +
 sound/soc/ep93xx/simone.c      |    1 +
 sound/soc/ep93xx/snappercl15.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/ep93xx/edb93xx.c +1 -0
index 9f6fecd..bae5cbb 100644
@@ -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,
 };
sound/soc/ep93xx/simone.c +1 -0
index 1e00b33..dd99709 100644
@@ -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,
 };
sound/soc/ep93xx/snappercl15.c +1 -0
index e97cd57..ccae34a 100644
@@ -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,
 };
Signature · 1 line
1.7.5.4
author
#8 lore raw

PATCH 6/6 ASoC: tegra: Add .owner to struct snd_soc_card

In reply to Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

---
 sound/soc/tegra/tegra_alc5632.c |    1 +
 sound/soc/tegra/tegra_wm8903.c  |    1 +
 sound/soc/tegra/trimslice.c     |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/tegra/tegra_alc5632.c +1 -0
index 9287eb8..4a0e805 100644
@@ -141,6 +141,7 @@ static struct snd_soc_dai_link tegra_alc5632_dai = {
 
 static struct snd_soc_card snd_soc_tegra_alc5632 = {
 	.name = "tegra-alc5632",
+	.owner = THIS_MODULE,
 	.dai_link = &tegra_alc5632_dai,
 	.num_links = 1,
 	.controls = tegra_alc5632_controls,
sound/soc/tegra/tegra_wm8903.c +1 -0
index 4677f26..566655e 100644
@@ -363,6 +363,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = {
 
 static struct snd_soc_card snd_soc_tegra_wm8903 = {
 	.name = "tegra-wm8903",
+	.owner = THIS_MODULE,
 	.dai_link = &tegra_wm8903_dai,
 	.num_links = 1,
 
sound/soc/tegra/trimslice.c +1 -0
index 7d95b76..2bdfc55 100644
@@ -127,6 +127,7 @@ static struct snd_soc_dai_link trimslice_tlv320aic23_dai = {
 
 static struct snd_soc_card snd_soc_trimslice = {
 	.name = "tegra-trimslice",
+	.owner = THIS_MODULE,
 	.dai_link = &trimslice_tlv320aic23_dai,
 	.num_links = 1,
 
Signature · 8 lines
1.7.5.4



_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Applied
#9 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

Missed .owner of struct snd_soc_card will prevent the module from being removed from underneath its users.

Applied all these except the au1x one, thanks.