regulator: qcom-rpm: Add missing state flag in call to RPM
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Wed, 26 Nov 2014 21:51:01 +0000 (13:51 -0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 22 Jan 2015 16:04:02 +0000 (16:04 +0000)
This adds the missing state parameter to the call down to the RPM. This
is currently hard coded to the active state, as that's all we're
supporting at this moment.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/qcom_rpm-regulator.c

index 8364ff331a81838c6e84fe822b17d434bfb74aa7..edd0a177693630d4ae1a0ce6d8045d1b49116b12 100644 (file)
@@ -205,6 +205,7 @@ static int rpm_reg_write(struct qcom_rpm_reg *vreg,
        vreg->val[req->word] |= value << req->shift;
 
        return qcom_rpm_write(vreg->rpm,
+                             QCOM_RPM_ACTIVE_STATE,
                              vreg->resource,
                              vreg->val,
                              vreg->parts->request_len);