mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
rpmsg: glink: Add name functionality back
IPC logging and IRQ naming depend on the name variable in the glink data structure. Add device tree name reading code that was removed by upstream. Change-Id: Id1c521d94b8a3c9557273d8f8b072e7e87a1b759 Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
8a22567035
commit
453bbe3dbd
|
|
@ -2083,6 +2083,10 @@ struct qcom_glink *qcom_glink_native_probe(struct device *dev,
|
|||
if (ret)
|
||||
dev_err(dev, "failed to add groups\n");
|
||||
|
||||
ret = of_property_read_string(dev->of_node, "label", &glink->name);
|
||||
if (ret < 0)
|
||||
glink->name = dev->of_node->name;
|
||||
|
||||
glink->mbox_client.dev = dev;
|
||||
glink->mbox_client.knows_txdone = true;
|
||||
glink->mbox_chan = mbox_request_channel(&glink->mbox_client, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user