[PATCH v3 01/11] firmware: scmi: switch to dev_ofnode during bind
Bryan Brattlof <[email protected]> Mon, 3 Aug 2026 19:09:26 -0500
| Newsgroups | gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <[email protected]> |
From: Anshul Dalal <[email protected]> When using ofnode_null() the node offset passed to the FDT API will be -1 which is invalid and breaks probe. Switch to dev_ofnode() Tested-by: Anshul Dalal <[email protected]> Signed-off-by: Anshul Dalal <[email protected]> Signed-off-by: Bryan Brattlof <[email protected]> --- drivers/firmware/scmi/scmi_agent-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/scmi/scmi_agent-uclass.c b/drivers/firmware/scmi/scmi_agent-uclass.c index cd458a7f4588..65c1ddad2b57 100644 --- a/drivers/firmware/scmi/scmi_agent-uclass.c +++ b/drivers/firmware/scmi/scmi_agent-uclass.c @@ -437,7 +437,7 @@ static int scmi_bind_protocols(struct udevice *dev) /* initialize the device from device tree */ drv = DM_DRIVER_GET(scmi_base_drv); name = "scmi-base.0"; - ret = device_bind(dev, drv, name, NULL, ofnode_null(), &proto); + ret = device_bind(dev, drv, name, NULL, dev_ofnode(dev), &proto); if (ret) { dev_err(dev, "failed to bind base protocol\n"); return ret; -- 2.54.0