summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2017-07-26 18:53:44 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2017-07-26 09:59:27 -0700
commitaaafb24ebe2517ae9ec06008f2b0375bea77124d (patch)
treeb658561e130dd498a7cbe411daefe3b8d4cd1c53 /drivers/rpmsg
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
downloadlinux-aaafb24ebe2517ae9ec06008f2b0375bea77124d.tar.bz2
rpmsg: qcom_smd: add of_node node to edge device
This patch assigns the device node to the edge device, so that the edge device drivers could read required device tree properties. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/qcom_smd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index a0a39a8821a3..b01774e9fac0 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -1368,6 +1368,7 @@ struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
edge->dev.parent = parent;
edge->dev.release = qcom_smd_edge_release;
+ edge->dev.of_node = node;
edge->dev.groups = qcom_smd_edge_groups;
dev_set_name(&edge->dev, "%s:%s", dev_name(parent), node->name);
ret = device_register(&edge->dev);