summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorShreshtha Sahu <ssahu@nvidia.com>2014-07-25 13:34:35 +0000
committerWinnie Hsu <whsu@nvidia.com>2014-10-29 10:43:28 -0700
commit9f529900d770ed23a881963df4fe8c966bca1792 (patch)
tree64e3f79411b7eed8314d7ede2ea96fe60c31e06b /drivers/media
parent7a5aebfb401e2ac6db4104f15b4ffc79a7ac53e2 (diff)
media: tegra: add regulator vana for dw9718
add regulator vana for dw9718 Bug 1259310 Change-Id: I654669b1f02af9b7afbf51e8077a4f8324ead403 Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com> Signed-off-by: Mihir Thakkar <mthakkar@nvidia.com> Reviewed-on: http://git-master/r/555460 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Tested-by: Tushar Khinvasara <tkhinvasara@nvidia.com> Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/tegra/dw9718.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/tegra/dw9718.c b/drivers/media/platform/tegra/dw9718.c
index 1bf511ef214f..6797e0166551 100644
--- a/drivers/media/platform/tegra/dw9718.c
+++ b/drivers/media/platform/tegra/dw9718.c
@@ -331,8 +331,12 @@ static int dw9718_power_put(struct dw9718_power_rail *pw)
if (likely(pw->vdd_i2c))
regulator_put(pw->vdd_i2c);
+ if (likely(pw->vana))
+ regulator_put(pw->vana);
+
pw->vdd = NULL;
pw->vdd_i2c = NULL;
+ pw->vana = NULL;
return 0;
}
@@ -363,6 +367,7 @@ static int dw9718_power_get(struct dw9718_info *info)
dw9718_regulator_get(info, &pw->vdd, "vdd");
dw9718_regulator_get(info, &pw->vdd_i2c, "vdd_i2c");
+ dw9718_regulator_get(info, &pw->vana, "vana");
return 0;
}