summaryrefslogtreecommitdiff
path: root/drivers/firmware/scmi/mailbox_agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/scmi/mailbox_agent.c')
-rw-r--r--drivers/firmware/scmi/mailbox_agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c
index 16a82f55ab7..cda94565de5 100644
--- a/drivers/firmware/scmi/mailbox_agent.c
+++ b/drivers/firmware/scmi/mailbox_agent.c
@@ -101,7 +101,7 @@ static int scmi_mbox_get_channel(struct udevice *dev,
struct scmi_mbox_channel *chan;
int ret;
- if (!dev_read_prop(protocol, "shmem", NULL)) {
+ if (!dev_has_ofnode(protocol) || !dev_read_prop(protocol, "shmem", NULL)) {
/* Uses agent base channel */
*channel = container_of(base_chan, struct scmi_channel, ref);