Skip to content

Commit 55026a9

Browse files
andy-shevKAGA-KOKO
authored andcommitted
irqdomain: Delete irq_domain_add_tree()
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
1 parent 89acaa5 commit 55026a9

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

Documentation/translations/zh_CN/core-api/irq/irq-domain.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ irq_domain维护着从hwirq号到Linux IRQ的radix的树状映射。 当一个hw
109109
如果hwirq号可以非常大,树状映射是一个很好的选择,因为它不需要分配一个和最大hwirq
110110
号一样大的表。 缺点是,hwirq到IRQ号的查找取决于表中有多少条目。
111111

112-
irq_domain_add_tree()和irq_domain_create_tree()在功能上是等价的,除了第一
113-
个参数不同——前者接受一个Open Firmware特定的 'struct device_node' ,而后者接受
114-
一个更通用的抽象 'struct fwnode_handle' 。
115-
116112
很少有驱动应该需要这个映射。
117113

118114
无映射

include/linux/irqdomain.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -730,22 +730,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
730730
}
731731
#endif
732732

733-
static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node,
734-
const struct irq_domain_ops *ops,
735-
void *host_data)
736-
{
737-
struct irq_domain_info info = {
738-
.fwnode = of_fwnode_handle(of_node),
739-
.hwirq_max = ~0U,
740-
.ops = ops,
741-
.host_data = host_data,
742-
};
743-
struct irq_domain *d;
744-
745-
d = irq_domain_instantiate(&info);
746-
return IS_ERR(d) ? NULL : d;
747-
}
748-
749733
static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
750734
unsigned int size,
751735
const struct irq_domain_ops *ops,

0 commit comments

Comments
 (0)