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

Commit 30e49530 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC: blackfin: 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 338d68db
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -91,6 +91,7 @@ static struct snd_soc_dai_link bf5xx_ad1836_dai[] = {


static struct snd_soc_card bf5xx_ad1836 = {
static struct snd_soc_card bf5xx_ad1836 = {
	.name = "bfin-ad1836",
	.name = "bfin-ad1836",
	.owner = THIS_MODULE,
	.dai_link = &bf5xx_ad1836_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.dai_link = &bf5xx_ad1836_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.num_links = 1,
	.num_links = 1,
};
};
+1 −0
Original line number Original line Diff line number Diff line
@@ -119,6 +119,7 @@ static struct snd_soc_dai_link bf5xx_ad193x_dai[] = {


static struct snd_soc_card bf5xx_ad193x = {
static struct snd_soc_card bf5xx_ad193x = {
	.name = "bfin-ad193x",
	.name = "bfin-ad193x",
	.owner = THIS_MODULE,
	.dai_link = &bf5xx_ad193x_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.dai_link = &bf5xx_ad193x_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.num_links = 1,
	.num_links = 1,
};
};
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ static struct snd_soc_dai_link bf5xx_board_dai[] = {


static struct snd_soc_card bf5xx_board = {
static struct snd_soc_card bf5xx_board = {
	.name = "bfin-ad1980",
	.name = "bfin-ad1980",
	.owner = THIS_MODULE,
	.dai_link = &bf5xx_board_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.dai_link = &bf5xx_board_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.num_links = 1,
	.num_links = 1,
};
};
+1 −0
Original line number Original line Diff line number Diff line
@@ -192,6 +192,7 @@ static struct snd_soc_dai_link bf5xx_ad73311_dai[] = {


static struct snd_soc_card bf5xx_ad73311 = {
static struct snd_soc_card bf5xx_ad73311 = {
	.name = "bfin-ad73311",
	.name = "bfin-ad73311",
	.owner = THIS_MODULE,
	.probe = bf5xx_probe,
	.probe = bf5xx_probe,
	.dai_link = &bf5xx_ad73311_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.dai_link = &bf5xx_ad73311_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.num_links = 1,
	.num_links = 1,
+1 −0
Original line number Original line Diff line number Diff line
@@ -125,6 +125,7 @@ static struct snd_soc_dai_link bf5xx_ssm2602_dai[] = {


static struct snd_soc_card bf5xx_ssm2602 = {
static struct snd_soc_card bf5xx_ssm2602 = {
	.name = "bfin-ssm2602",
	.name = "bfin-ssm2602",
	.owner = THIS_MODULE,
	.dai_link = &bf5xx_ssm2602_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.dai_link = &bf5xx_ssm2602_dai[CONFIG_SND_BF5XX_SPORT_NUM],
	.num_links = 1,
	.num_links = 1,
};
};
Loading