summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2019-06-10 10:20:42 +0300
committerPhilippe Schenker <philippe.schenker@toradex.com>2020-08-13 16:04:42 +0200
commit4309926e2978e6111c15d338577a93b59564cc77 (patch)
tree340a2ce4a9c8eb6064ef940aea7d7d02ca36aa29 /drivers/of
parenta7717eb72a03affb2b07d6b3ff699d4fbac6e6ea (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> (cherry picked from commit 1f91cc2018b5f652de5ac154fab41f589c829e6b)
Diffstat (limited to 'drivers/of')
-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 a296eaf52a5b..6000ddf99fa3 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -440,6 +440,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