Skip to content

Commit 9fe69a7

Browse files
committed
rpmsg: glink-smem: Name the edge based on parent remoteproc
Naming the glink edge device on the parent of_node short name causes collisions when multiple remoteproc instances with only different unit address are described on the platform_bus in DeviceTree. Base the edge's name on the parent remoteproc's name instead, to ensure that it's unique. Reviewed-by: Niklas Cassel <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 61c65f4 commit 9fe69a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rpmsg/qcom_glink_smem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct qcom_glink *qcom_glink_smem_register(struct device *parent,
201201
dev->parent = parent;
202202
dev->of_node = node;
203203
dev->release = qcom_glink_smem_release;
204-
dev_set_name(dev, "%pOFn:%pOFn", node->parent, node);
204+
dev_set_name(dev, "%s:%pOFn", dev_name(parent->parent), node);
205205
ret = device_register(dev);
206206
if (ret) {
207207
pr_err("failed to register glink edge\n");

0 commit comments

Comments
 (0)