diff options
-rw-r--r-- | drivers/clocksource/exynos_mct.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 509a6019c96c..661026834b23 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -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 * 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); |