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

Commit 4a7042e5 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: sh: Add .owner to struct snd_soc_card



Add missing .owner of struct snd_soc_card. This prevents 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 23bd1ce4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
};

static struct snd_soc_card fsi_soc_card  = {
	.owner		= THIS_MODULE,
	.dai_link	= &fsi_dai_link,
	.num_links	= 1,
};
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ static struct snd_soc_dai_link fsi_da7210_dai = {

static struct snd_soc_card fsi_soc_card = {
	.name		= "FSI-DA7210",
	.owner		= THIS_MODULE,
	.dai_link	= &fsi_da7210_dai,
	.num_links	= 1,
};
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ static struct snd_soc_dai_link fsi_dai_link = {
};

static struct snd_soc_card fsi_soc_card  = {
	.owner		= THIS_MODULE,
	.dai_link	= &fsi_dai_link,
	.num_links	= 1,
};
+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ static struct snd_soc_dai_link migor_dai = {
/* migor audio machine driver */
static struct snd_soc_card snd_soc_migor = {
	.name = "Migo-R",
	.owner = THIS_MODULE,
	.dai_link = &migor_dai,
	.num_links = 1,
};
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ static struct snd_soc_dai_link sh7760_ac97_dai = {

static struct snd_soc_card sh7760_ac97_soc_machine  = {
	.name = "SH7760 AC97",
	.owner = THIS_MODULE,
	.dai_link = &sh7760_ac97_dai,
	.num_links = 1,
};