aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-05-05 13:02:54 +0800
committerAlex Shi <alex.shi@linaro.org>2016-05-05 13:03:34 +0800
commita0c4cbd7ae66e88314963feb5027d532856fb145 (patch)
tree1b80bf119731b47df38ac66f841abdf52fa22963
parent4f817df5117d28f1ffd8b9a906b70356f2b30132 (diff)
Revert "PM / OPP: Disable OPPs that aren't supported by the regulator"v3.18/topic/OPPv2
This reverts commit a55a5305982d996a4db88c2525299edc836ebccf. The _opp_supported_by_regulators used by debug part, and that missed in current backport. so revert this commit to avoid a unused warning. Reported-by:Jon Medhurst (Tixy) <tixy@linaro.org> Signed-off-by: Alex Shi <alex.shi@linaro.org>
-rw-r--r--drivers/base/power/opp/core.c16
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)
{