ASoC: mxs: Add .owner to struct snd_soc_card
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 28 Dec 2011 12:06:21 +0000 (20:06 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Dec 2011 17:20:48 +0000 (17:20 +0000)
Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Signed-off-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>
sound/soc/mxs/mxs-sgtl5000.c

index 259278f95cdf12b26bf167be757118c478bf4a69..60f052b7cf223b6573a1116153552acb76849f0a 100644 (file)
@@ -105,6 +105,7 @@ static struct snd_soc_dai_link mxs_sgtl5000_dai[] = {
 
 static struct snd_soc_card mxs_sgtl5000 = {
        .name           = "mxs_sgtl5000",
+       .owner          = THIS_MODULE,
        .dai_link       = mxs_sgtl5000_dai,
        .num_links      = ARRAY_SIZE(mxs_sgtl5000_dai),
 };