summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShreshtha SAHU <ssahu@nvidia.com>2014-09-15 17:02:35 +0530
committerMatthew Pedro <mapedro@nvidia.com>2014-09-16 22:08:48 -0700
commitc086f0a2543a92e76acd67d35af47522e36abbdf (patch)
tree3072fbb4ca393f4ea51d3466ff0b5d05361c0e30 /sound
parent23dd5fee8bd60cdb143435ce13d4b1ed85d52e96 (diff)
ASoC: Tegra: Fix double regulator disable
digital_reg was disabled second time instead of codec_reg Bug 200036995 Change-Id: I8e9b3aeafa613a5a58063b88ee81bf3d0aaf4e43 Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com> Reviewed-on: http://git-master/r/498837 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinayak Pane <vpane@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/tegra/tegra_rt5639.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_rt5639.c b/sound/soc/tegra/tegra_rt5639.c
index b26096550c2d..d541d6cffd50 100644
--- a/sound/soc/tegra/tegra_rt5639.c
+++ b/sound/soc/tegra/tegra_rt5639.c
@@ -1480,7 +1480,7 @@ err_fini_utils:
if (machine->dmic_reg)
regulator_put(machine->dmic_reg);
if (machine->codec_reg) {
- regulator_disable(machine->digital_reg);
+ regulator_disable(machine->codec_reg);
regulator_put(machine->codec_reg);
}