[tip: timers/clocksource] of/irq: Export of_irq_count for modules

From: tip-bot2 for Will McVicker
Date: Wed Jul 23 2025 - 03:20:34 EST


The following commit has been merged into the timers/clocksource branch of tip:

Commit-ID: 2abaaf8cc1104906cb2241a067e380a6295ffada
Gitweb: https://git.kernel.org/tip/2abaaf8cc1104906cb2241a067e380a6295ffada
Author: Will McVicker <willmcvicker@xxxxxxxxxx>
AuthorDate: Fri, 20 Jun 2025 11:17:04 -07:00
Committer: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
CommitterDate: Tue, 15 Jul 2025 13:00:50 +02:00

of/irq: Export of_irq_count for modules

Need to export `of_irq_count` in preparation for modularizing the Exynos
MCT driver which uses this API for setting up the timer IRQs.

Acked-by: Rob Herring (Arm) <robh@xxxxxxxxxx>
Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@xxxxxxxxxxxxxxxx>
Reviewed-by: Youngmin Nam <youngmin.nam@xxxxxxxxxxx>
Tested-by: Youngmin Nam <youngmin.nam@xxxxxxxxxxx>
Signed-off-by: Will McVicker <willmcvicker@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20250620181719.1399856-2-willmcvicker@xxxxxxxxxx
Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
---
drivers/of/irq.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index f8ad79b..5adda1d 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -519,6 +519,7 @@ int of_irq_count(struct device_node *dev)

return nr;
}
+EXPORT_SYMBOL_GPL(of_irq_count);

/**
* of_irq_to_resource_table - Fill in resource table with node's IRQ info