ASoC: kirkwood: Add .owner to struct snd_soc_card
authorAxel Lin <axel.lin@gmail.com>
Fri, 23 Dec 2011 06:49:28 +0000 (14:49 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 23 Dec 2011 11:32:09 +0000 (11:32 +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/kirkwood/kirkwood-openrd.c
sound/soc/kirkwood/kirkwood-t5325.c

index d863afb3ee521098b36a1a7b4a50293a52903082..8a5a3ddaa5e20a3c2e4011e3825c401e81e11a25 100644 (file)
@@ -76,6 +76,7 @@ static struct snd_soc_dai_link openrd_client_dai[] = {
 
 static struct snd_soc_card openrd_client = {
        .name = "OpenRD Client",
+       .owner = THIS_MODULE,
        .dai_link = openrd_client_dai,
        .num_links = ARRAY_SIZE(openrd_client_dai),
 };
index c772b3cf4039f77386dbc4d77551b70a0e8a1323..a8930c7c9d1ece1433cf52edf89c6457de4ac7ca 100644 (file)
@@ -98,6 +98,7 @@ static struct snd_soc_dai_link t5325_dai[] = {
 
 static struct snd_soc_card t5325 = {
        .name = "t5325",
+       .owner = THIS_MODULE,
        .dai_link = t5325_dai,
        .num_links = ARRAY_SIZE(t5325_dai),
 };