]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
irqdomain: Delete irq_domain_add_tree()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 2 Dec 2025 20:23:27 +0000 (21:23 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Dec 2025 02:16:50 +0000 (11:16 +0900)
No in-tree users anymore.

[ tglx: Remove the reference in the Chinese documentation as well ]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251202202327.1444693-1-andriy.shevchenko@linux.intel.com
Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
include/linux/irqdomain.h

index 4a2d3b27aa4d215bc7d7db90987f99c682d5bf9b..aaefeda0e164443c96ddd985b836c9fe68a7eeea 100644 (file)
@@ -109,10 +109,6 @@ irq_domain维护着从hwirq号到Linux IRQ的radix的树状映射。 当一个hw
 如果hwirq号可以非常大,树状映射是一个很好的选择,因为它不需要分配一个和最大hwirq
 号一样大的表。 缺点是,hwirq到IRQ号的查找取决于表中有多少条目。
 
-irq_domain_add_tree()和irq_domain_create_tree()在功能上是等价的,除了第一
-个参数不同——前者接受一个Open Firmware特定的 'struct device_node' ,而后者接受
-一个更通用的抽象 'struct fwnode_handle' 。
-
 很少有驱动应该需要这个映射。
 
 无映射
index 952d3c8dd6b7a20b0b54d5cb1b6deabab67de960..62f81bbeb4906badee8f0c3f8d06352f4f505426 100644 (file)
@@ -730,22 +730,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node,
-                                                    const struct irq_domain_ops *ops,
-                                                    void *host_data)
-{
-       struct irq_domain_info info = {
-               .fwnode         = of_fwnode_handle(of_node),
-               .hwirq_max      = ~0U,
-               .ops            = ops,
-               .host_data      = host_data,
-       };
-       struct irq_domain *d;
-
-       d = irq_domain_instantiate(&info);
-       return IS_ERR(d) ? NULL : d;
-}
-
 static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
                                                       unsigned int size,
                                                       const struct irq_domain_ops *ops,