summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-20 17:26:28 +0200
committerJason Cooper <jason@lakedaemon.net>2016-08-23 01:08:59 +0200
commit21118df66c198d6ebb23e6827e2e92ab1e148e78 (patch)
tree268abc717367fcf67ba124cf966b98bf061290f1
parentirqchip/jcore-aic: Add J-Core AIC driver (diff)
downloadlinux-21118df66c198d6ebb23e6827e2e92ab1e148e78.tar.xz
linux-21118df66c198d6ebb23e6827e2e92ab1e148e78.zip
irqchip/jcore-aic: Fix non static symbol warning
Fixes the following sparse warning: drivers/irqchip/irq-jcore-aic.c:47:12: warning: symbol 'aic_irq_of_init' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Link: https://lkml.kernel.org/r/1471706788-27587-1-git-send-email-weiyj.lk@gmail.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--drivers/irqchip/irq-jcore-aic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-jcore-aic.c b/drivers/irqchip/irq-jcore-aic.c
index 5e5e3bb7d3c7..84b01dec277d 100644
--- a/drivers/irqchip/irq-jcore-aic.c
+++ b/drivers/irqchip/irq-jcore-aic.c
@@ -44,7 +44,8 @@ static void noop(struct irq_data *data)
{
}
-int __init aic_irq_of_init(struct device_node *node, struct device_node *parent)
+static int __init aic_irq_of_init(struct device_node *node,
+ struct device_node *parent)
{
unsigned min_irq = JCORE_AIC2_MIN_HWIRQ;
unsigned dom_sz = JCORE_AIC_MAX_HWIRQ+1;