Skip to contentSkip to conversation

irqchip/econet-en751221: Switch to of_fwnode_handle()

PATCH Applied Jiri Slaby (SUSE) 2 participants 2 messages May 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/econet-en751221: Switch to of_fwnode_handle()

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

---
 drivers/irqchip/irq-econet-en751221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +1 -1
index fd65dfe54ce9..d83d5eb12795 100644
@@ -286,7 +286,7 @@ static int __init econet_intc_of_init(struct device_node *node, struct device_no
 
 	econet_mask_all();
 
-	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,
+	domain = irq_domain_create_linear(of_fwnode_handle(node), IRQ_COUNT,
 					  &econet_domain_ops, NULL);
 	if (!domain) {
 		pr_err("%pOF: Failed to add irqdomain\n", node);
Signature · 1 line
2.49.0
#1 lore raw
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     96a8cb6d28cebd51a286fe4a8782dc8492813ac4
Gitweb:        https://git.kernel.org/tip/96a8cb6d28cebd51a286fe4a8782dc8492813ac4
Author:        Jiri Slaby (SUSE) <[email protected]>
AuthorDate:    Tue, 13 May 2025 10:47:39 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Tue, 13 May 2025 16:39:03 +02:00

irqchip/econet-en751221: Switch to of_fwnode_handle()

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

---
 drivers/irqchip/irq-econet-en751221.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +1 -1
index fd65dfe..d83d5eb 100644
@@ -286,7 +286,7 @@ static int __init econet_intc_of_init(struct device_node *node, struct device_no
 
 	econet_mask_all();
 
-	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,
+	domain = irq_domain_create_linear(of_fwnode_handle(node), IRQ_COUNT,
 					  &econet_domain_ops, NULL);
 	if (!domain) {
 		pr_err("%pOF: Failed to add irqdomain\n", node);