Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Herve Codina and committed by
Thomas Gleixner
0b4b172b a701f8e9

+1 -38
+1 -5
include/linux/irqdomain.h
··· 184 184 /* Irq domain is hierarchical */ 185 185 IRQ_DOMAIN_FLAG_HIERARCHY = (1 << 0), 186 186 187 - /* Irq domain name was allocated in __irq_domain_add() */ 187 + /* Irq domain name was allocated internally */ 188 188 IRQ_DOMAIN_NAME_ALLOCATED = (1 << 1), 189 189 190 190 /* Irq domain is an IPI domain with virq per cpu */ ··· 307 307 struct irq_domain *devm_irq_domain_instantiate(struct device *dev, 308 308 const struct irq_domain_info *info); 309 309 310 - struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, 311 - irq_hw_number_t hwirq_max, int direct_max, 312 - const struct irq_domain_ops *ops, 313 - void *host_data); 314 310 struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode, 315 311 unsigned int size, 316 312 unsigned int first_irq,
-33
kernel/irq/irqdomain.c
··· 318 318 EXPORT_SYMBOL_GPL(irq_domain_instantiate); 319 319 320 320 /** 321 - * __irq_domain_add() - Allocate a new irq_domain data structure 322 - * @fwnode: firmware node for the interrupt controller 323 - * @size: Size of linear map; 0 for radix mapping only 324 - * @hwirq_max: Maximum number of interrupts supported by controller 325 - * @direct_max: Maximum value of direct maps; Use ~0 for no limit; 0 for no 326 - * direct mapping 327 - * @ops: domain callbacks 328 - * @host_data: Controller private data pointer 329 - * 330 - * Allocates and initializes an irq_domain structure. 331 - * Returns pointer to IRQ domain, or NULL on failure. 332 - */ 333 - struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, 334 - irq_hw_number_t hwirq_max, int direct_max, 335 - const struct irq_domain_ops *ops, 336 - void *host_data) 337 - { 338 - struct irq_domain_info info = { 339 - .fwnode = fwnode, 340 - .size = size, 341 - .hwirq_max = hwirq_max, 342 - .direct_max = direct_max, 343 - .ops = ops, 344 - .host_data = host_data, 345 - }; 346 - struct irq_domain *d; 347 - 348 - d = irq_domain_instantiate(&info); 349 - return IS_ERR(d) ? NULL : d; 350 - } 351 - EXPORT_SYMBOL_GPL(__irq_domain_add); 352 - 353 - /** 354 321 * irq_domain_remove() - Remove an irq domain. 355 322 * @domain: domain to remove 356 323 *