summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-08-21 20:59:21 +0800
committerMark Brown <broonie@kernel.org>2015-08-21 09:07:19 -0700
commit54d8697fa5036df0e27f8d62edb7ebc35c3f73d6 (patch)
tree380b4f70036de9f46f81e0e8377f5d7bcea1de55 /sound/soc/rockchip
parentebb75c0bdba238013976b53e256f8d13216304e4 (diff)
downloadlinux-stable-54d8697fa5036df0e27f8d62edb7ebc35c3f73d6.tar.gz
linux-stable-54d8697fa5036df0e27f8d62edb7ebc35c3f73d6.tar.bz2
linux-stable-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/rockchip')
-rw-r--r--sound/soc/rockchip/rockchip_max98090.c1
-rw-r--r--sound/soc/rockchip/rockchip_rt5645.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c
index acace20d4127..cc26f81ee4ff 100644
--- a/sound/soc/rockchip/rockchip_max98090.c
+++ b/sound/soc/rockchip/rockchip_max98090.c
@@ -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,
diff --git a/sound/soc/rockchip/rockchip_rt5645.c b/sound/soc/rockchip/rockchip_rt5645.c
index 3c6bb1ea06ec..09402799c8dc 100644
--- a/sound/soc/rockchip/rockchip_rt5645.c
+++ b/sound/soc/rockchip/rockchip_rt5645.c
@@ -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,