[PATCH 5.4 2/3] irqdomain: Refactor __irq_domain_alloc_irqs()