[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241115230509.1793191-1-saravanak@google.com>
Date: Fri, 15 Nov 2024 15:05:07 -0800
From: Saravana Kannan <saravanak@...gle.com>
To: Stephen Boyd <sboyd@...nel.org>
Cc: Saravana Kannan <saravanak@...gle.com>, kernel-team@...roid.com,
linux-kernel@...r.kernel.org
Subject: [PATCH v1] spmi: Set fwnode for spmi devices
This allows fw_devlink to do proper dependency tracking for SPMI
devices. So, better deferred probe handling, async probing, async
suspend/resume, etc.
Signed-off-by: Saravana Kannan <saravanak@...gle.com>
---
drivers/spmi/spmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c
index fb0101da1485..3cf8d9bd4566 100644
--- a/drivers/spmi/spmi.c
+++ b/drivers/spmi/spmi.c
@@ -517,7 +517,7 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
if (!sdev)
continue;
- sdev->dev.of_node = node;
+ device_set_node(&sdev->dev, of_fwnode_handle(node));
sdev->usid = (u8)reg[0];
err = spmi_device_add(sdev);
--
2.47.0.338.g60cca15819-goog
Powered by blists - more mailing lists