|
@@ -1724,6 +1724,9 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
|
|
if (regulator->always_on)
|
|
if (regulator->always_on)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
|
|
+ if (!ms)
|
|
|
|
+ return regulator_disable(regulator);
|
|
|
|
+
|
|
mutex_lock(&rdev->mutex);
|
|
mutex_lock(&rdev->mutex);
|
|
rdev->deferred_disables++;
|
|
rdev->deferred_disables++;
|
|
mutex_unlock(&rdev->mutex);
|
|
mutex_unlock(&rdev->mutex);
|