ASoC: Set missing card owner field
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Aug 2015 12:59:21 +0000 (20:59 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 21 Aug 2015 16:07:19 +0000 (09:07 -0700)
Set the card owner field to prevent the module from being removed from
underneath its users.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
13 files changed:
sound/soc/blackfin/bfin-eval-adau1x61.c
sound/soc/intel/boards/byt-max98090.c
sound/soc/intel/boards/byt-rt5640.c
sound/soc/intel/boards/bytcr_rt5640.c
sound/soc/intel/boards/cht_bsw_max98090_ti.c
sound/soc/intel/boards/cht_bsw_rt5645.c
sound/soc/intel/boards/cht_bsw_rt5672.c
sound/soc/mediatek/mt8173-max98090.c
sound/soc/mediatek/mt8173-rt5650-rt5676.c
sound/soc/rockchip/rockchip_max98090.c
sound/soc/rockchip/rockchip_rt5645.c
sound/soc/samsung/arndale_rt5631.c
sound/soc/samsung/snow.c

index 4229f76daec9f1eead184dee6cce816e11033674..fddfe00c9d69538966f378406951a8f431aef0bf 100644 (file)
@@ -108,6 +108,7 @@ static struct snd_soc_dai_link bfin_eval_adau1x61_dai = {
 
 static struct snd_soc_card bfin_eval_adau1x61 = {
        .name = "bfin-eval-adau1x61",
+       .owner = THIS_MODULE,
        .driver_name = "eval-adau1x61",
        .dai_link = &bfin_eval_adau1x61_dai,
        .num_links = 1,
index 7ab8cc9fbfd53b33be8ad519a0d5ab5672c632c8..d9f81b8d915dfc268ac53e366d060fd86e5edea8 100644 (file)
@@ -126,6 +126,7 @@ static struct snd_soc_dai_link byt_max98090_dais[] = {
 
 static struct snd_soc_card byt_max98090_card = {
        .name = "byt-max98090",
+       .owner = THIS_MODULE,
        .dai_link = byt_max98090_dais,
        .num_links = ARRAY_SIZE(byt_max98090_dais),
        .dapm_widgets = byt_max98090_widgets,
index ae89b9b966d9ff3e46101777355044b2694e8815..de9788a3fd06221dd7971d3c4967ad4c0bf22b81 100644 (file)
@@ -197,6 +197,7 @@ static struct snd_soc_dai_link byt_rt5640_dais[] = {
 
 static struct snd_soc_card byt_rt5640_card = {
        .name = "byt-rt5640",
+       .owner = THIS_MODULE,
        .dai_link = byt_rt5640_dais,
        .num_links = ARRAY_SIZE(byt_rt5640_dais),
        .dapm_widgets = byt_rt5640_widgets,
index 7f55d59024a88bd7b53ddd6f66a00fc8adeeaabd..c4453120b11a33c60dc08422b49096f2700ce872 100644 (file)
@@ -185,6 +185,7 @@ static struct snd_soc_dai_link byt_dailink[] = {
 /* SoC card */
 static struct snd_soc_card snd_soc_card_byt = {
        .name = "baytrailcraudio",
+       .owner = THIS_MODULE,
        .dai_link = byt_dailink,
        .num_links = ARRAY_SIZE(byt_dailink),
        .dapm_widgets = byt_dapm_widgets,
index d604ee80eda4be715601db603181e0291cc98747..cd2595362c109219b9045f755e4afc52227a8481 100644 (file)
@@ -279,6 +279,7 @@ static struct snd_soc_dai_link cht_dailink[] = {
 /* SoC card */
 static struct snd_soc_card snd_soc_card_cht = {
        .name = "chtmax98090",
+       .owner = THIS_MODULE,
        .dai_link = cht_dailink,
        .num_links = ARRAY_SIZE(cht_dailink),
        .aux_dev = &cht_max98090_headset_dev,
index bdcaf467842ab788219689ab854048feef029f6c..7be8461e4d3bd45c32b921b96acc1817bcb3584f 100644 (file)
@@ -305,6 +305,7 @@ static struct snd_soc_dai_link cht_dailink[] = {
 /* SoC card */
 static struct snd_soc_card snd_soc_card_chtrt5645 = {
        .name = "chtrt5645",
+       .owner = THIS_MODULE,
        .dai_link = cht_dailink,
        .num_links = ARRAY_SIZE(cht_dailink),
        .dapm_widgets = cht_dapm_widgets,
@@ -317,6 +318,7 @@ static struct snd_soc_card snd_soc_card_chtrt5645 = {
 
 static struct snd_soc_card snd_soc_card_chtrt5650 = {
        .name = "chtrt5650",
+       .owner = THIS_MODULE,
        .dai_link = cht_dailink,
        .num_links = ARRAY_SIZE(cht_dailink),
        .dapm_widgets = cht_dapm_widgets,
index 2c9cc5be439e654bccb875df435eb651cf25163f..23fe0407514209d2ddfd67b7e076f099c5e73f5d 100644 (file)
@@ -323,6 +323,7 @@ static int cht_resume_post(struct snd_soc_card *card)
 /* SoC card */
 static struct snd_soc_card snd_soc_card_cht = {
        .name = "cherrytrailcraudio",
+       .owner = THIS_MODULE,
        .dai_link = cht_dailink,
        .num_links = ARRAY_SIZE(cht_dailink),
        .dapm_widgets = cht_dapm_widgets,
index 4d44b5803e55206c02006b9359449df377477b6c..fb8f97e77fdf4715417df6ed3b9fb9268821cad0 100644 (file)
@@ -139,6 +139,7 @@ static struct snd_soc_dai_link mt8173_max98090_dais[] = {
 
 static struct snd_soc_card mt8173_max98090_card = {
        .name = "mt8173-max98090",
+       .owner = THIS_MODULE,
        .dai_link = mt8173_max98090_dais,
        .num_links = ARRAY_SIZE(mt8173_max98090_dais),
        .controls = mt8173_max98090_controls,
index 0940553230596aed2ba41787b8605e26c2cc11c7..caf8c47b3710268016ee053621a75931ec49f2ab 100644 (file)
@@ -194,6 +194,7 @@ static struct snd_soc_codec_conf mt8173_rt5650_rt5676_codec_conf[] = {
 
 static struct snd_soc_card mt8173_rt5650_rt5676_card = {
        .name = "mtk-rt5650-rt5676",
+       .owner = THIS_MODULE,
        .dai_link = mt8173_rt5650_rt5676_dais,
        .num_links = ARRAY_SIZE(mt8173_rt5650_rt5676_dais),
        .codec_conf = mt8173_rt5650_rt5676_codec_conf,
index acace20d4127dbead01070b237b734ff40814f6a..cc26f81ee4ffbf14bee0d20d1fbf8687ce2476e3 100644 (file)
@@ -147,6 +147,7 @@ static struct snd_soc_dai_link rk_dailink = {
 
 static struct snd_soc_card snd_soc_card_rk = {
        .name = "ROCKCHIP-I2S",
+       .owner = THIS_MODULE,
        .dai_link = &rk_dailink,
        .num_links = 1,
        .aux_dev = &rk_98090_headset_dev,
index 3c6bb1ea06ecec51ec53e61f61534e8664d99802..09402799c8dccbb6a87af2e9fccbe765d4474e8c 100644 (file)
@@ -146,6 +146,7 @@ static struct snd_soc_dai_link rk_dailink = {
 
 static struct snd_soc_card snd_soc_card_rk = {
        .name = "I2S-RT5650",
+       .owner = THIS_MODULE,
        .dai_link = &rk_dailink,
        .num_links = 1,
        .dapm_widgets = rk_dapm_widgets,
index 8bf2e2c4bafb97f64eafab4d81a87be20e68f8f7..323aa0d8e583606c36e6ab3487496c43b9d95d48 100644 (file)
@@ -71,6 +71,7 @@ static struct snd_soc_dai_link arndale_rt5631_dai[] = {
 
 static struct snd_soc_card arndale_rt5631 = {
        .name = "Arndale RT5631",
+       .owner = THIS_MODULE,
        .dai_link = arndale_rt5631_dai,
        .num_links = ARRAY_SIZE(arndale_rt5631_dai),
 };
index 7651dc92416107e74f23965f281b9a4523c6a19c..07ce2cfa484503af827c19c478d2f123830126d9 100644 (file)
@@ -56,6 +56,7 @@ static int snow_late_probe(struct snd_soc_card *card)
 
 static struct snd_soc_card snow_snd = {
        .name = "Snow-I2S",
+       .owner = THIS_MODULE,
        .dai_link = snow_dai,
        .num_links = ARRAY_SIZE(snow_dai),