void __init sirfsoc_of_irq_init(void) { struct device_node *np; np = of_find_matching_node(NULL, intc_ids); if (!np) panic("unable to find compatible intc node in dtb\n"); sirfsoc_intc_base = of_iomap(np, 0); if (!sirfsoc_intc_base) panic("unable to map intc cpu registers\n"); of_node_put(np); sirfsoc_irq_init(); }
void __init sirfsoc_of_irq_init(void) { struct device_node *np; np = of_find_matching_node(NULL, intc_ids); if (!np) panic("unable to find compatible intc node in dtb\n"); sirfsoc_intc_base = of_iomap(np, 0); if (!sirfsoc_intc_base) panic("unable to map intc cpu registers\n"); irq_domain_add_legacy(np, SIRFSOC_INTENAL_IRQ_END + 1, 0, 0, &irq_domain_simple_ops, NULL); of_node_put(np); sirfsoc_irq_init(); }