diff options
author | Sri Krishna chowdary <schowdary@nvidia.com> | 2012-12-31 18:29:48 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2013-01-03 15:15:43 -0800 |
commit | 2be11457a857263ee83263484af6294542230076 (patch) | |
tree | 8b8351af9b46cdc7ce95ea80ce29554028c7ac55 /drivers/misc/nct1008.c | |
parent | b3e24f202060e97e6d58562171e5341fe4833224 (diff) |
misc: nct: add delay when regulator enables
Bug 1205034
Change-Id: If5df510d2b2e683f8a6b6c7b431343c1c4b4223e
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/187785
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'drivers/misc/nct1008.c')
-rw-r--r-- | drivers/misc/nct1008.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/nct1008.c b/drivers/misc/nct1008.c index 5e067c75b206..a27d9c681e09 100644 --- a/drivers/misc/nct1008.c +++ b/drivers/misc/nct1008.c @@ -841,10 +841,12 @@ static void nct1008_power_control(struct nct1008_data *data, bool is_enable) return; } } - if (is_enable) + if (is_enable) { ret = regulator_enable(data->nct_reg); - else + usleep_range(100, 1000); + } else { ret = regulator_disable(data->nct_reg); + } if (ret < 0) dev_err(&data->client->dev, "Error in %s rail vdd_nct%s, " |