summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreshtha SAHU <ssahu@nvidia.com>2014-09-29 16:49:21 +0530
committerWinnie Hsu <whsu@nvidia.com>2014-10-01 18:58:16 -0700
commit2efbea7430a572089f442d258834c7fd5e4e9b75 (patch)
tree5541760adc9a89c93ca3127567a0c134dd745bdc
parent1b4758b8ac42f65ad59ddfdd124bb0d750962fc1 (diff)
asoc: rt5639: fix missing regmap_exit during remove
without regmap_exit in remove, next modprobe of modprobe used to complain of "Failed to create debugfs directory" due to stale debugfs directory. Bug 200038898 Change-Id: Ie6373f40b50c1307ee7d114dc0f44164c4b426eb Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/542646 Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r--sound/soc/codecs/rt5639.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c
index e9a5a4db3538..c11dcc2aeea8 100644
--- a/sound/soc/codecs/rt5639.c
+++ b/sound/soc/codecs/rt5639.c
@@ -3148,6 +3148,7 @@ static int rt5639_probe(struct snd_soc_codec *codec)
static int rt5639_remove(struct snd_soc_codec *codec)
{
rt5639_set_bias_level(codec, SND_SOC_BIAS_OFF);
+ regmap_exit(codec->control_data);
device_remove_file(codec->dev, &dev_attr_index_reg);
return 0;
}