]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
soc: qcom: smd: Use correct smem id
authorAndy Gross <agross@codeaurora.org>
Mon, 13 Jul 2015 21:35:56 +0000 (16:35 -0500)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:10 +0000 (09:55 +0000)
This patch fixes the incorrect table and smem id usage

Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd.c

index 498fd0581a451999b89cbb43805b37f003fdb379..1aec2777ecc366061ef51fa90b663f0e88f049b7 100644 (file)
@@ -1248,7 +1248,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) {