11a296af7002ef0918d5cef3f006a448d00ddf94
[openwrt/openwrt.git] / target / linux / ipq806x / patches-3.18 / 125-regulator-qcom-rpm-Add-missing-state-flag-in-call-to.patch
1 From 803926825fa4db007437f76654e3e63bafb9b906 Mon Sep 17 00:00:00 2001
2 From: Bjorn Andersson <bjorn.andersson@sonymobile.com>
3 Date: Wed, 26 Nov 2014 13:51:01 -0800
4 Subject: [PATCH] regulator: qcom-rpm: Add missing state flag in call to RPM
5
6 This adds the missing state parameter to the call down to the RPM. This
7 is currently hard coded to the active state, as that's all we're
8 supporting at this moment.
9
10 Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
11 Signed-off-by: Lee Jones <lee.jones@linaro.org>
12 ---
13 drivers/regulator/qcom_rpm-regulator.c | 1 +
14 1 file changed, 1 insertion(+)
15
16 diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
17 index 8364ff3..edd0a17 100644
18 --- a/drivers/regulator/qcom_rpm-regulator.c
19 +++ b/drivers/regulator/qcom_rpm-regulator.c
20 @@ -205,6 +205,7 @@ static int rpm_reg_write(struct qcom_rpm_reg *vreg,
21 vreg->val[req->word] |= value << req->shift;
22
23 return qcom_rpm_write(vreg->rpm,
24 + QCOM_RPM_ACTIVE_STATE,
25 vreg->resource,
26 vreg->val,
27 vreg->parts->request_len);
28 --
29 2.1.4
30