Thread (42 messages) 42 messages, 7 authors, 24d ago
COLD24d

[PATCH net-next 01/10] net: wan: framer: switch to using class_find_device_by_fwnode()

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2026-03-23 01:54:40
Also in: driver-core, linux-fpga, linux-leds, linux-phy, linux-spi, lkml
Subsystem: lantiq pef2256 driver, networking drivers, the rest · Maintainers: Herve Codina, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

In preparation to class_find_device_by_of_node() going away switch to
using class_find_device_by_fwnode().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/net/wan/framer/framer-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wan/framer/framer-core.c b/drivers/net/wan/framer/framer-core.c
index d779b03a9e1b..77ef1bfd476c 100644
--- a/drivers/net/wan/framer/framer-core.c
+++ b/drivers/net/wan/framer/framer-core.c
@@ -745,7 +745,7 @@ struct framer *framer_provider_simple_of_xlate(struct device *dev,
 {
 	struct device *target_dev;
 
-	target_dev = class_find_device_by_of_node(&framer_class, args->np);
+	target_dev = class_find_device_by_fwnode(&framer_class, of_fwnode_handle(args->np));
 	if (!target_dev)
 		return ERR_PTR(-ENODEV);
 
-- 
2.53.0.959.g497ff81fa9-goog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help