diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-06-10 06:11:22 +0200 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2016-06-25 05:53:41 +0200 |
commit | 3680a4a97435496ad22cd0fc9f2ba51751cc4e36 (patch) | |
tree | 9f29fe57bd4fe8dbf717fd6ecee563d69bc597f3 /drivers/soc/qcom/smem_state.c | |
parent | soc: qcom: smp2p: Drop io-accessors (diff) | |
download | linux-3680a4a97435496ad22cd0fc9f2ba51751cc4e36.tar.xz linux-3680a4a97435496ad22cd0fc9f2ba51751cc4e36.zip |
soc: qcom: Update properties for smem state referencing
Update the property names to match device tree bindings, the correct
values should be qcom,smem-states and qcom,smem-state-names.
Also update the #qcom,smem-state-cells for consistency, before we merge
any users of these properties.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/soc/qcom/smem_state.c')
-rw-r--r-- | drivers/soc/qcom/smem_state.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/soc/qcom/smem_state.c b/drivers/soc/qcom/smem_state.c index 54261decb369..d5437ca76ed9 100644 --- a/drivers/soc/qcom/smem_state.c +++ b/drivers/soc/qcom/smem_state.c @@ -104,26 +104,26 @@ struct qcom_smem_state *qcom_smem_state_get(struct device *dev, if (con_id) { index = of_property_match_string(dev->of_node, - "qcom,state-names", + "qcom,smem-state-names", con_id); if (index < 0) { - dev_err(dev, "missing qcom,state-names\n"); + dev_err(dev, "missing qcom,smem-state-names\n"); return ERR_PTR(index); } } ret = of_parse_phandle_with_args(dev->of_node, - "qcom,state", - "#qcom,state-cells", + "qcom,smem-states", + "#qcom,smem-state-cells", index, &args); if (ret) { - dev_err(dev, "failed to parse qcom,state property\n"); + dev_err(dev, "failed to parse qcom,smem-states property\n"); return ERR_PTR(ret); } if (args.args_count != 1) { - dev_err(dev, "invalid #qcom,state-cells\n"); + dev_err(dev, "invalid #qcom,smem-state-cells\n"); return ERR_PTR(-EINVAL); } |