Commit f4636d0a authored by Arnd Bergmann's avatar Arnd Bergmann

clocksource: exynos_mct: fix build error on non-DT

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: default avatarArnd Bergmann <arnd@arndb.de>
parent 1f1a7357
...@@ -541,7 +541,11 @@ static void __init mct_init_dt(struct device_node *np, unsigned int int_type) ...@@ -541,7 +541,11 @@ static void __init mct_init_dt(struct device_node *np, unsigned int int_type)
* timer irqs are specified after the four global timer * timer irqs are specified after the four global timer
* irqs are specified. * irqs are specified.
*/ */
#ifdef CONFIG_OF
nr_irqs = of_irq_count(np); nr_irqs = of_irq_count(np);
#else
nr_irqs = 0;
#endif
for (i = MCT_L0_IRQ; i < nr_irqs; i++) for (i = MCT_L0_IRQ; i < nr_irqs; i++)
mct_irqs[i] = irq_of_parse_and_map(np, i); mct_irqs[i] = irq_of_parse_and_map(np, i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment