aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Gross <agross@codeaurora.org>2015-07-13 16:35:56 -0500
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2016-02-29 14:53:24 +0000
commit471d309be90824a54b5b35724918b07265bdcb0b (patch)
treea147c918625418d96b189e0bd7ba4f579f0986f7
parent025c8567afd99f8e5b2d199d1470cc6144a8b50e (diff)
soc: qcom: smd: Use correct smem id
This patch fixes the incorrect table and smem id usage Signed-off-by: Andy Gross <agross@codeaurora.org>
-rw-r--r--drivers/soc/qcom/smd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/soc/qcom/smd.c b/drivers/soc/qcom/smd.c
index d861eefffcc7c..78d9c61ba4d37 100644
--- a/drivers/soc/qcom/smd.c
+++ b/drivers/soc/qcom/smd.c
@@ -1356,7 +1356,11 @@ static int qcom_smd_parse_edge(struct device *dev,
edge->remote_pid = QCOM_SMEM_HOST_ANY;
key = "qcom,remote-pid";
- of_property_read_u32(node, key, &edge->remote_pid);
+ ret = of_property_read_u32(node, key, &edge->remote_pid);
+ if (ret) {
+ dev_err(dev, "edge missing %s property\n", key);
+ return -EINVAL;
+ }
syscon_np = of_parse_phandle(node, "qcom,ipc", 0);
if (!syscon_np) {