Thread (24 messages) read the whole thread 24 messages, 9 authors, 4d ago
COOLING4d

[PATCH 8/8] slimbus: qcom-ngd-ctrl: use platform_device_set_fwnode()

From: Bartosz Golaszewski <hidden>
Date: 2026-07-20 09:25:57
Also in: driver-core, imx, linux-arm-kernel, linux-arm-msm, linux-i2c, linux-iommu, linux-pm, linux-sound, lkml, netdev
Subsystem: arm/qualcomm mailing list, serial low-power inter-chip media bus (slimbus), the rest · Maintainers: Srinivas Kandagatla, Linus Torvalds

Prefer the higher-level platform_device_set_fwnode() over the
OF-specific platform_device_set_of_node() for dynamically allocated
platform devices.

Signed-off-by: Bartosz Golaszewski <redacted>
---
 drivers/slimbus/qcom-ngd-ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c
index 934c44c5bc1a92fae98f52bccd12ed849379dca8..bf077f47c9ddd484c11f98b47d2d8d4daf78dcb7 100644
--- a/drivers/slimbus/qcom-ngd-ctrl.c
+++ b/drivers/slimbus/qcom-ngd-ctrl.c
@@ -1538,7 +1538,7 @@ static int of_qcom_slim_ngd_register(struct device *parent,
 			kfree(ngd);
 			return ret;
 		}
-		platform_device_set_of_node(ngd->pdev, node);
+		platform_device_set_fwnode(ngd->pdev, of_fwnode_handle(node));
 		ctrl->ngd = ngd;
 
 		ret = platform_device_add(ngd->pdev);
-- 
2.47.3

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help