misc: nct: remove delay in resume
Bitan Biswas [Thu, 11 Jul 2013 11:58:37 +0000 (16:58 +0530)]
bug 1317941

Change-Id: I947d43fb8ac574787bba4c9109e0a22f52b2dc97
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: http://git-master/r/247838
(cherry picked from commit 210050261eb4e8c58e1ce0de8665833abf84a296)
Reviewed-on: http://git-master/r/253263
Reviewed-by: Automatic_Commit_Validation_User

drivers/misc/nct1008.c

index d13d3bd..f2e0bd3 100644 (file)
@@ -76,8 +76,6 @@
 #define CELSIUS_TO_MILLICELSIUS(x) ((x)*1000)
 #define MILLICELSIUS_TO_CELSIUS(x) ((x)/1000)
 
-#define POWER_ON_DELAY 20 /*ms*/
-
 struct nct1008_data {
        struct workqueue_struct *workqueue;
        struct work_struct work;
@@ -898,10 +896,9 @@ static int nct1008_power_control(struct nct1008_data *data, bool enable)
        if (!data->nct_reg)
                return 0;
 
-       if (enable) {
+       if (enable)
                ret = regulator_enable(data->nct_reg);
-               msleep(POWER_ON_DELAY);
-       } else
+       else
                ret = regulator_disable(data->nct_reg);
 
        if (ret < 0)