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/251338
Reviewed-by: Automatic_Commit_Validation_User

drivers/misc/nct1008.c

index 97bbf29..b65a710 100644 (file)
@@ -79,8 +79,6 @@
 #define CELSIUS_TO_MILLICELSIUS(x) ((x)*1000)
 #define MILLICELSIUS_TO_CELSIUS(x) ((x)/1000)
 
-#define POWER_ON_DELAY 20 /* ms */
-
 #define THERM_WARN_RANGE_HIGH_OFFSET   2000
 #define THERM_WARN_RANGE_LOW_OFFSET    7000
 
@@ -925,12 +923,10 @@ 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);
-               msleep(POWER_ON_DELAY);
-       } else {
+       else
                ret = regulator_disable(data->nct_reg);
-       }
 
        if (ret < 0)
                dev_err(&data->client->dev, "Error in %s rail vdd_nct%s, "