On 7/21/26 10:30 AM, Bryan Brattlof wrote:
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()
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 we always used to pass null here, and that breaks probe as the commit
message states, how did this ever work for anyone else?
Looks correct, just something that might be good to add to the commit
message if you do a v2
Acked-by: Andrew Davis <[email protected]>
if (ret) {
dev_err(dev, "failed to bind base protocol\n");
return ret;