diff options
author | Alex Shi <alex.shi@linaro.org> | 2016-05-05 13:10:03 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2016-05-05 13:10:03 +0800 |
commit | c52149e0ea4b02a021e6ae528bc567479725ea79 (patch) | |
tree | 5636eb8d40b5e167b6a0e9739728be5dc2c1e4fd | |
parent | e0ac66e00b01f6ff4e8274a4b5c008a26583c1b9 (diff) | |
parent | a0c4cbd7ae66e88314963feb5027d532856fb145 (diff) |
Merge remote-tracking branch 'v3.18/topic/OPPv2' into linux-linaro-lsk-v3.18
-rw-r--r-- | drivers/base/power/opp/core.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c index 6ec74b575313..ed19c41d782e 100644 --- a/drivers/base/power/opp/core.c +++ b/drivers/base/power/opp/core.c @@ -964,22 +964,6 @@ static struct dev_pm_opp *_allocate_opp(struct device *dev, return opp; } -static bool _opp_supported_by_regulators(struct dev_pm_opp *opp, - struct device_opp *dev_opp) -{ - struct regulator *reg = dev_opp->regulator; - - if (!IS_ERR(reg) && - !regulator_is_supported_voltage(reg, opp->u_volt_min, - opp->u_volt_max)) { - pr_warn("%s: OPP minuV: %lu maxuV: %lu, not supported by regulator\n", - __func__, opp->u_volt_min, opp->u_volt_max); - return false; - } - - return true; -} - static int _opp_add(struct device *dev, struct dev_pm_opp *new_opp, struct device_opp *dev_opp) { |