Skip to contentSkip to conversation

irqdomain: x86: Switch to of_fwnode_handle()

PATCH New Jiri Slaby (SUSE) 1 participant 1 message Apr 15, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqdomain: x86: Switch to of_fwnode_handle()

of_node_to_fwnode() is irqdomain's reimplementation of the "officially" defined of_fwnode_handle(). The former is in the process of being removed, so use the latter instead.

Cc Ingo Molnar <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc "H. Peter Anvin" <[email protected]>

---
This is an indepent patch, please apply directly.

The patch was previously a part of a large series [1], but I would like maintainers to feed the independent parts through their trees.

[1] https://lore.kernel.org/all/[email protected]/

---
 arch/x86/kernel/apic/io_apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/io_apic.c +1 -1
index eebc360ed1bb..487992cb0836 100644
@@ -2225,7 +2225,7 @@ static int mp_irqdomain_create(int ioapic)
 
 	/* Handle device tree enumerated APICs proper */
 	if (cfg->dev) {
-		fn = of_node_to_fwnode(cfg->dev);
+		fn = of_fwnode_handle(cfg->dev);
 	} else {
 		fn = irq_domain_alloc_named_id_fwnode("IO-APIC", mpc_ioapic_id(ioapic));
 		if (!fn)
Signature · 1 line
2.49.0