[PATCH v4 25/26] irqdomain: Kill of_node_to_fwnode() helper

Marc Zyngier posted 26 patches 1 month, 3 weeks ago
[PATCH v4 25/26] irqdomain: Kill of_node_to_fwnode() helper
Posted by Marc Zyngier 1 month, 3 weeks ago
There is no in-tree users of this helper since b13b41cc3dc18 ("misc:
ti_fpc202: Switch to of_fwnode_handle()"), and is replaced with
of_fwnode_handle().

Get rid of it.

Suggested-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 include/linux/irqdomain.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 9d6a5e99394fa..5907baf6099d9 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -730,12 +730,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-/* Deprecated functions. Will be removed in the merge window */
-static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
-{
-	return node ? &node->fwnode : NULL;
-}
-
 static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node,
 						     const struct irq_domain_ops *ops,
 						     void *host_data)
-- 
2.47.3
Re: [PATCH v4 25/26] irqdomain: Kill of_node_to_fwnode() helper
Posted by Jonathan Cameron 1 month ago
On Mon, 20 Oct 2025 13:29:42 +0100
Marc Zyngier <maz@kernel.org> wrote:

> There is no in-tree users of this helper since b13b41cc3dc18 ("misc:
> ti_fpc202: Switch to of_fwnode_handle()"), and is replaced with
> of_fwnode_handle().
> 
> Get rid of it.
> 
> Suggested-by: Jonathan Cameron <jonathan.cameron@huawei.com>
> Tested-by: Will Deacon <will@kernel.org>
> Signed-off-by: Marc Zyngier <maz@kernel.org>

Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
I didn't bother checking all the other removal patches but didn't see
anything wrong with them!  Ripping code out is (usually) uncontroversial.


> ---
>  include/linux/irqdomain.h | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
> index 9d6a5e99394fa..5907baf6099d9 100644
> --- a/include/linux/irqdomain.h
> +++ b/include/linux/irqdomain.h
> @@ -730,12 +730,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
>  }
>  #endif
>  
> -/* Deprecated functions. Will be removed in the merge window */
> -static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
> -{
> -	return node ? &node->fwnode : NULL;
> -}
> -
>  static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node,
>  						     const struct irq_domain_ops *ops,
>  						     void *host_data)
[tip: irq/core] irqdomain: Kill of_node_to_fwnode() helper
Posted by tip-bot2 for Marc Zyngier 1 month, 2 weeks ago
The following commit has been merged into the irq/core branch of tip:

Commit-ID:     ebac4649fcadc6047030810326875c6e612c7b2f
Gitweb:        https://git.kernel.org/tip/ebac4649fcadc6047030810326875c6e612c7b2f
Author:        Marc Zyngier <maz@kernel.org>
AuthorDate:    Mon, 20 Oct 2025 13:29:42 +01:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Mon, 27 Oct 2025 17:16:37 +01:00

irqdomain: Kill of_node_to_fwnode() helper

There is no in-tree users of this helper since b13b41cc3dc18 ("misc:
ti_fpc202: Switch to of_fwnode_handle()"), and is replaced with
of_fwnode_handle().

Get rid of it.

Suggested-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20251020122944.3074811-26-maz@kernel.org
---
 include/linux/irqdomain.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 9d6a5e9..5907baf 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -730,12 +730,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-/* Deprecated functions. Will be removed in the merge window */
-static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *node)
-{
-	return node ? &node->fwnode : NULL;
-}
-
 static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node,
 						     const struct irq_domain_ops *ops,
 						     void *host_data)