diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-16 09:23:15 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-02-16 09:23:15 +0000 |
commit | 6869d66ad6e8d662dc124fc9103566cb1bd7454a (patch) | |
tree | a876d1a91d12fc5c15d05d7ec65dbf21430bcacc /target/linux/atheros-2.6/files/arch/mips/atheros/irq.c | |
parent | ee43602dd36fa25bf6e539f6fb89c0192fa9517d (diff) |
major cleanup of the ar531x code, improved hardware detection and support for multiple ethernet interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/files/arch/mips/atheros/irq.c')
-rw-r--r-- | target/linux/atheros-2.6/files/arch/mips/atheros/irq.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c b/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c index 99d960b417..052dbc1d23 100644 --- a/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c +++ b/target/linux/atheros-2.6/files/arch/mips/atheros/irq.c @@ -67,14 +67,8 @@ static struct irqaction spurious_misc = { asmlinkage void plat_irq_dispatch(void) { -#ifdef CONFIG_ATHEROS_AR5312 - if (mips_machtype == MACH_ATHEROS_AR5312) - ar5312_irq_dispatch(); -#endif -#ifdef CONFIG_ATHEROS_AR5315 - if (mips_machtype == MACH_ATHEROS_AR5315) - ar5315_irq_dispatch(); -#endif + DO_AR5312(ar5312_irq_dispatch();) + DO_AR5315(ar5315_irq_dispatch();) } void __init arch_init_irq(void) @@ -83,14 +77,8 @@ void __init arch_init_irq(void) mips_cpu_irq_init(0); /* Initialize interrupt controllers */ -#ifdef CONFIG_ATHEROS_AR5312 - if (mips_machtype == MACH_ATHEROS_AR5312) - ar5312_misc_intr_init(AR531X_MISC_IRQ_BASE); -#endif -#ifdef CONFIG_ATHEROS_AR5315 - if (mips_machtype == MACH_ATHEROS_AR5315) - ar5315_misc_intr_init(AR531X_MISC_IRQ_BASE); -#endif + DO_AR5312(ar5312_misc_intr_init(AR531X_MISC_IRQ_BASE);) + DO_AR5315(ar5315_misc_intr_init(AR531X_MISC_IRQ_BASE);) /* Default "spurious interrupt" handlers */ setup_irq(AR531X_IRQ_NONE, &spurious_irq); |