Merge "regulator: core: remove some dead code"
This commit is contained in:
commit
71faca4550
1 changed files with 3 additions and 8 deletions
|
@ -2395,7 +2395,6 @@ static void regulator_disable_work(struct work_struct *work)
|
|||
int regulator_disable_deferred(struct regulator *regulator, int ms)
|
||||
{
|
||||
struct regulator_dev *rdev = regulator->rdev;
|
||||
int ret;
|
||||
|
||||
if (regulator->always_on)
|
||||
return 0;
|
||||
|
@ -2407,13 +2406,9 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
|
|||
rdev->deferred_disables++;
|
||||
mutex_unlock(&rdev->mutex);
|
||||
|
||||
ret = queue_delayed_work(system_power_efficient_wq,
|
||||
&rdev->disable_work,
|
||||
msecs_to_jiffies(ms));
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
else
|
||||
return 0;
|
||||
queue_delayed_work(system_power_efficient_wq, &rdev->disable_work,
|
||||
msecs_to_jiffies(ms));
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(regulator_disable_deferred);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue