From: Axel Lin Date: Thu, 22 Dec 2011 13:21:37 +0000 (+0800) Subject: ASoC: ep93xx: Add .owner to struct snd_soc_card X-Git-Tag: v3.3-rc1~14^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a76a70232914902e47d289b6d3853ac850097573;p=profile%2Fcommon%2Fkernel-common.git ASoC: ep93xx: 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: Lothar Waßmann Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/ep93xx/edb93xx.c b/sound/soc/ep93xx/edb93xx.c index 9f6fecd..bae5cbb 100644 --- a/sound/soc/ep93xx/edb93xx.c +++ b/sound/soc/ep93xx/edb93xx.c @@ -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, }; diff --git a/sound/soc/ep93xx/simone.c b/sound/soc/ep93xx/simone.c index 1e00b33..dd99709 100644 --- a/sound/soc/ep93xx/simone.c +++ b/sound/soc/ep93xx/simone.c @@ -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, }; diff --git a/sound/soc/ep93xx/snappercl15.c b/sound/soc/ep93xx/snappercl15.c index e97cd57..ccae34a 100644 --- a/sound/soc/ep93xx/snappercl15.c +++ b/sound/soc/ep93xx/snappercl15.c @@ -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, };