ASoC: nuc900: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:51:17 +0000 (14:51 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:16:58 +0000 (11:16 +0000)
Add missing .owner of struct snd_soc_card. This prevents 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>
sound/soc/nuc900/nuc900-audio.c

index 38a2d0d883b53f592e5512546c9245ca57399209..2f6e6fd6e05c64c3fa49faad83a10245ec18d43b 100644 (file)
@@ -32,6 +32,7 @@ static struct snd_soc_dai_link nuc900evb_ac97_dai = {
 
 static struct snd_soc_card nuc900evb_audio_machine = {
        .name           = "NUC900EVB_AC97",
+       .owner          = THIS_MODULE,
        .dai_link       = &nuc900evb_ac97_dai,
        .num_links      = 1,
 };