There is currently no alternative implementation for of_irq_count
when the function is not defined, and the declaration is hidden,
so this works around calling an undeclared function. It should
really not be needed.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
* timer irqs are specified after the four global timer
* irqs are specified.
*/
+#ifdef CONFIG_OF
nr_irqs = of_irq_count(np);
+#else
+ nr_irqs = 0;
+#endif
for (i = MCT_L0_IRQ; i < nr_irqs; i++)
mct_irqs[i] = irq_of_parse_and_map(np, i);