diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-08-21 20:59:21 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-21 09:07:19 -0700 |
commit | 54d8697fa5036df0e27f8d62edb7ebc35c3f73d6 (patch) | |
tree | 380b4f70036de9f46f81e0e8377f5d7bcea1de55 /sound/soc/mediatek | |
parent | ebb75c0bdba238013976b53e256f8d13216304e4 (diff) | |
download | linux-54d8697fa5036df0e27f8d62edb7ebc35c3f73d6.tar.gz linux-54d8697fa5036df0e27f8d62edb7ebc35c3f73d6.tar.bz2 linux-54d8697fa5036df0e27f8d62edb7ebc35c3f73d6.zip |
ASoC: Set missing card owner field
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>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r-- | sound/soc/mediatek/mt8173-max98090.c | 1 | ||||
-rw-r--r-- | sound/soc/mediatek/mt8173-rt5650-rt5676.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mt8173-max98090.c b/sound/soc/mediatek/mt8173-max98090.c index 4d44b5803e55..fb8f97e77fdf 100644 --- a/sound/soc/mediatek/mt8173-max98090.c +++ b/sound/soc/mediatek/mt8173-max98090.c @@ -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, diff --git a/sound/soc/mediatek/mt8173-rt5650-rt5676.c b/sound/soc/mediatek/mt8173-rt5650-rt5676.c index 094055323059..caf8c47b3710 100644 --- a/sound/soc/mediatek/mt8173-rt5650-rt5676.c +++ b/sound/soc/mediatek/mt8173-rt5650-rt5676.c @@ -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, |