Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 338d68db authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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.

Reported-by: default avatarLothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 4c3c5df0
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -189,6 +189,7 @@ static struct snd_soc_dai_link at91sam9g20ek_dai = {


static struct snd_soc_card snd_soc_at91sam9g20ek = {
static struct snd_soc_card snd_soc_at91sam9g20ek = {
	.name = "AT91SAMG20-EK",
	.name = "AT91SAMG20-EK",
	.owner = THIS_MODULE,
	.dai_link = &at91sam9g20ek_dai,
	.dai_link = &at91sam9g20ek_dai,
	.num_links = 1,
	.num_links = 1,
	.set_bias_level = at91sam9g20ek_set_bias_level,
	.set_bias_level = at91sam9g20ek_set_bias_level,
+1 −0
Original line number Original line Diff line number Diff line
@@ -135,6 +135,7 @@ static struct snd_soc_dai_link afeb9260_dai = {
/* Audio machine driver */
/* Audio machine driver */
static struct snd_soc_card snd_soc_machine_afeb9260 = {
static struct snd_soc_card snd_soc_machine_afeb9260 = {
	.name = "AFEB9260",
	.name = "AFEB9260",
	.owner = THIS_MODULE,
	.dai_link = &afeb9260_dai,
	.dai_link = &afeb9260_dai,
	.num_links = 1,
	.num_links = 1,
};
};