[PATCH 3/5] [MIPS] remove unused function alloc_legacy_irqno()

From: Dmitri Vorobiev
Date: Thu May 29 2008 - 11:16:41 EST


The function alloc_legacy_irqno() is not used any more, and this
patch removes it.

Inspired by a namespacecheck warning.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@xxxxxxxxx>
---
arch/mips/kernel/irq.c | 13 -------------
include/asm-mips/irq.h | 1 -
2 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c
index e3309ff..ba4e331 100644
--- a/arch/mips/kernel/irq.c
+++ b/arch/mips/kernel/irq.c
@@ -46,19 +46,6 @@ again:

EXPORT_SYMBOL_GPL(allocate_irqno);

-/*
- * Allocate the 16 legacy interrupts for i8259 devices. This happens early
- * in the kernel initialization so treating allocation failure as BUG() is
- * ok.
- */
-void __init alloc_legacy_irqno(void)
-{
- int i;
-
- for (i = 0; i <= 16; i++)
- BUG_ON(test_and_set_bit(i, irq_map));
-}
-
void free_irqno(unsigned int irq)
{
smp_mb__before_clear_bit();
diff --git a/include/asm-mips/irq.h b/include/asm-mips/irq.h
index a58f0ee..08e0700 100644
--- a/include/asm-mips/irq.h
+++ b/include/asm-mips/irq.h
@@ -148,7 +148,6 @@ extern void arch_init_irq(void);
extern void spurious_interrupt(void);

extern int allocate_irqno(void);
-extern void alloc_legacy_irqno(void);
extern void free_irqno(unsigned int irq);

/*
--
1.4.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/