lkml.org 
[lkml]   [2008]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] [MIPS] remove unused function alloc_legacy_irqno()
Date
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@movial.fi>
---
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


\
 
 \ /
  Last update: 2008-05-29 17:19    [W:0.073 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site