asoc: rt5639: fix missing regmap_exit during remove
Shreshtha SAHU [Mon, 29 Sep 2014 11:19:21 +0000 (16:19 +0530)]
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: I1579121748ebf14e216d9e29fbb607bda1de31f9
(cherry picked from commit Ie6373f40b50c1307ee7d114dc0f44164c4b426eb)
Reviewed-on: http://git-master/r/542646
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/554154
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

sound/soc/codecs/rt5639.c

index 42750e4..cc8b65c 100644 (file)
@@ -3283,6 +3283,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;
 }