ASoC: brownstone: add .owner to struct snd_soc_card
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 2 Jul 2013 09:26:21 +0000 (17:26 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:11:46 +0000 (11:11 +0100)
Add missing .owner of struct snd_soc_card. This prevents the
module from being removed from underneath its users.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/pxa/brownstone.c

index 4ad7609..5b7d969 100644 (file)
@@ -129,6 +129,7 @@ static struct snd_soc_dai_link brownstone_wm8994_dai[] = {
 /* audio machine driver */
 static struct snd_soc_card brownstone = {
        .name         = "brownstone",
+       .owner        = THIS_MODULE,
        .dai_link     = brownstone_wm8994_dai,
        .num_links    = ARRAY_SIZE(brownstone_wm8994_dai),