diff options
author | Herve Codina <herve.codina@bootlin.com> | 2024-06-14 19:32:21 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-06-17 15:48:15 +0200 |
commit | 0b4b172b760efabf8a77ea17644d333fbb444d39 (patch) | |
tree | 3706d3090a75b4808414566e4f27c2e57955d091 /kernel | |
parent | _PATCH_19_23_um_virt_pci_Use_irq_domain_instantiate_ (diff) | |
download | linux-0b4b172b760efabf8a77ea17644d333fbb444d39.tar.xz linux-0b4b172b760efabf8a77ea17644d333fbb444d39.zip |
irqdomain: Remove __irq_domain_add()
__irq_domain_add() has been replaced by irq_domain_instanciate() and so,
it is no more used.
Simply remove it.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240614173232.1184015-21-herve.codina@bootlin.com
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/irqdomain.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index c9b076c09eb4..91eaf6bfcbf0 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -318,39 +318,6 @@ err_domain_free: EXPORT_SYMBOL_GPL(irq_domain_instantiate); /** - * __irq_domain_add() - Allocate a new irq_domain data structure - * @fwnode: firmware node for the interrupt controller - * @size: Size of linear map; 0 for radix mapping only - * @hwirq_max: Maximum number of interrupts supported by controller - * @direct_max: Maximum value of direct maps; Use ~0 for no limit; 0 for no - * direct mapping - * @ops: domain callbacks - * @host_data: Controller private data pointer - * - * Allocates and initializes an irq_domain structure. - * Returns pointer to IRQ domain, or NULL on failure. - */ -struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, - irq_hw_number_t hwirq_max, int direct_max, - const struct irq_domain_ops *ops, - void *host_data) -{ - struct irq_domain_info info = { - .fwnode = fwnode, - .size = size, - .hwirq_max = hwirq_max, - .direct_max = direct_max, - .ops = ops, - .host_data = host_data, - }; - struct irq_domain *d; - - d = irq_domain_instantiate(&info); - return IS_ERR(d) ? NULL : d; -} -EXPORT_SYMBOL_GPL(__irq_domain_add); - -/** * irq_domain_remove() - Remove an irq domain. * @domain: domain to remove * |