regulator: qcom: Don't enable DRMS in driver
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Mon, 6 Apr 2015 23:33:57 +0000 (16:33 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 8 Apr 2015 11:21:39 +0000 (12:21 +0100)
The driver itself should not flag regulators as being DRMS compatible,
this should come from board or dt files.

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_rpm-regulator.c

index 15e07c233c1e9f6624d8f1ae14e4ba4572056d5a..ddca8cb363ad1fe7928614f6f102e6457b046d94 100644 (file)
@@ -732,10 +732,6 @@ static int rpm_reg_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       /* Regulators with ia property suppports drms */
-       if (vreg->parts->ia.mask)
-               initdata->constraints.valid_ops_mask |= REGULATOR_CHANGE_DRMS;
-
        key = "bias-pull-down";
        if (of_property_read_bool(pdev->dev.of_node, key)) {
                ret = rpm_reg_set(vreg, &vreg->parts->pd, 1);