diff mbox

rpmsg: qcom_smd: add of_node node to edge device

Message ID 20170726165344.1120-1-srinivas.kandagatla@linaro.org
State Accepted
Commit aaafb24ebe2517ae9ec06008f2b0375bea77124d
Headers show

Commit Message

Srinivas Kandagatla July 26, 2017, 4:53 p.m. UTC
From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>


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>

---
 drivers/rpmsg/qcom_smd.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Bjorn Andersson July 26, 2017, 5 p.m. UTC | #1
On Wed 26 Jul 09:53 PDT 2017, srinivas.kandagatla@linaro.org wrote:

> From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> 

> 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>


Applied

Thanks,
Bjorn

> ---

>  drivers/rpmsg/qcom_smd.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c

> index a0a39a8..b01774e 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);

> -- 

> 2.9.3

> 

--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index a0a39a8..b01774e 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);