ASoC: au1x: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 01:53:55 +0000 (09:53 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:16:29 +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/au1x/db1000.c
sound/soc/au1x/db1200.c

index 094a20723bc6dba62ff60233a72afaa588fba9c1..511d83c11a9a0e2799688df405a590ebc0a19ac4 100644 (file)
@@ -29,6 +29,7 @@ static struct snd_soc_dai_link db1000_ac97_dai = {
 
 static struct snd_soc_card db1000_ac97 = {
        .name           = "DB1000_AC97",
+       .owner          = THIS_MODULE,
        .dai_link       = &db1000_ac97_dai,
        .num_links      = 1,
 };
index 80733331733fb103ef37d112b73bbb87310b1a2b..1c629393df782b5d866241ec9c2eded166df2bfe 100644 (file)
@@ -45,6 +45,7 @@ static struct snd_soc_dai_link db1200_ac97_dai = {
 
 static struct snd_soc_card db1200_ac97_machine = {
        .name           = "DB1200_AC97",
+       .owner          = THIS_MODULE,
        .dai_link       = &db1200_ac97_dai,
        .num_links      = 1,
 };
@@ -94,6 +95,7 @@ static struct snd_soc_dai_link db1200_i2s_dai = {
 
 static struct snd_soc_card db1200_i2s_machine = {
        .name           = "DB1200_I2S",
+       .owner          = THIS_MODULE,
        .dai_link       = &db1200_i2s_dai,
        .num_links      = 1,
 };
This page took 0.043198 seconds and 5 git commands to generate.