[PATCH v5 05/19] irqdomain: Refactor __irq_domain_alloc_irqs()