summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/avic.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-05-11 11:35:57 +0400
committerShawn Guo <shawn.guo@freescale.com>2014-05-12 22:58:51 +0800
commit000bf9ee89b4c921173cf49c0329a673aa08f516 (patch)
tree45935fdabcffcb2a3eb04b9095c15d6c45895c29 /arch/arm/mach-imx/avic.c
parentd4e7d9427d058614158cbe408ae3938cfb77679f (diff)
downloadblackbird-op-linux-000bf9ee89b4c921173cf49c0329a673aa08f516.tar.gz
blackbird-op-linux-000bf9ee89b4c921173cf49c0329a673aa08f516.zip
ARM: i.MX: Setup IRQ handler from IRQ driver
This patch moves IRQ handler setup to the its corresponded IRQ driver (AVIC, TZIC). Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/avic.c')
-rw-r--r--arch/arm/mach-imx/avic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/avic.c b/arch/arm/mach-imx/avic.c
index 8d1df2e4b7ac..24b103c67f82 100644
--- a/arch/arm/mach-imx/avic.c
+++ b/arch/arm/mach-imx/avic.c
@@ -135,7 +135,7 @@ static __init void avic_init_gc(int idx, unsigned int irq_start)
irq_setup_generic_chip(gc, IRQ_MSK(32), 0, IRQ_NOREQUEST, 0);
}
-asmlinkage void __exception_irq_entry avic_handle_irq(struct pt_regs *regs)
+static void __exception_irq_entry avic_handle_irq(struct pt_regs *regs)
{
u32 nivector;
@@ -190,6 +190,8 @@ void __init mxc_init_irq(void __iomem *irqbase)
for (i = 0; i < 8; i++)
__raw_writel(0, avic_base + AVIC_NIPRIORITY(i));
+ set_handle_irq(avic_handle_irq);
+
#ifdef CONFIG_FIQ
/* Initialize FIQ */
init_FIQ(FIQ_START);
OpenPOWER on IntegriCloud