ASoC: Tegra: Fix double regulator disable
Shreshtha SAHU [Mon, 15 Sep 2014 11:32:35 +0000 (16:32 +0530)]
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/498855
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

sound/soc/tegra/tegra_rt5639.c

index 326b5bf..d0dd25d 100644 (file)
@@ -1489,7 +1489,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);
        }