summaryrefslogtreecommitdiff
path: root/cpu/ixp/interrupts.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-05-15 23:45:22 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:48 +0200
commit2c75c78d94574ee996db2aa9b511258519471dd6 (patch)
tree3e9bc34ec12ad3325aaf2d6bd348064d59dacec5 /cpu/ixp/interrupts.c
parent8fc3bb4b0603516ad641e2de252a400b85fd869b (diff)
downloadu-boot-imx-2c75c78d94574ee996db2aa9b511258519471dd6.zip
u-boot-imx-2c75c78d94574ee996db2aa9b511258519471dd6.tar.gz
u-boot-imx-2c75c78d94574ee996db2aa9b511258519471dd6.tar.bz2
ixp/interrupts: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/ixp/interrupts.c')
-rw-r--r--cpu/ixp/interrupts.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/cpu/ixp/interrupts.c b/cpu/ixp/interrupts.c
index 621f31b..ee0129e 100644
--- a/cpu/ixp/interrupts.c
+++ b/cpu/ixp/interrupts.c
@@ -31,8 +31,6 @@
#include <common.h>
#include <asm/arch/ixp425.h>
-
-#ifdef CONFIG_USE_IRQ
#include <asm/proc-armv/ptrace.h>
/*
@@ -85,20 +83,15 @@ void reset_timer (void)
timestamp = 0;
}
-#endif /* #ifdef CONFIG_USE_IRQ */
-
-#ifdef CONFIG_USE_IRQ
void do_irq (struct pt_regs *pt_regs)
{
int irq = next_irq();
IRQ_HANDLER[irq].m_func(IRQ_HANDLER[irq].m_data);
}
-#endif
int interrupt_init (void)
{
-#ifdef CONFIG_USE_IRQ
int i;
/* install default interrupt handlers */
@@ -119,7 +112,6 @@ int interrupt_init (void)
/* enable timer irq */
*IXP425_ICMR = (1 << IXP425_TIMER_2_IRQ);
-#endif
return (0);
}