summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-06-10 10:20:42 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-07-09 09:50:45 +0300
commit20fd8ac46c84c2d6210bf2b13a7b2a915de07d8a (patch)
treea1a5383c6df1d48bafcc44ea1551ed43d067dd41 /drivers
parent4dea99f56488e8f4e5d714879d01cd35ec0a760b (diff)
of: irq: export symbol of_irq_count()
A kernel built with CONFIG_OF_IRQ usually fails to link because of unreachable function of_irq_count(). I.e.: ERROR: "of_irq_count" [drivers/dma/fsl-edma.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 This change fixes such kind linking errors. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/irq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index ec00ae7384c2..2e69ff5fa9c2 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -446,6 +446,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