ASoC: davinci: 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 <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Axel Lin
2011-12-22 21:19:42 +08:00
committed by Mark Brown
parent 30e4953011
commit 36a16d1ae0
2 changed files with 7 additions and 0 deletions

View File

@@ -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,
};