diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-06-29 05:24:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 13:26:22 -0400 |
commit | a8553acd6c14e827078779c0a0ee1c18f27b2403 (patch) | |
tree | 0dc7b8d52e7fd5c6fba90a9495cfbfa1d4e568e6 /include/linux/irq.h | |
parent | a53da52fd743fd637637572838c0a7af23a2d038 (diff) |
[PATCH] genirq: cleanup: remove irq_descp()
Cleanup: remove irq_descp() - explicit use of irq_desc[] is shorter and more
readable.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 6e3ad6245bd3..80713d6e8c8d 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -87,13 +87,6 @@ typedef struct irq_desc { | |||
87 | 87 | ||
88 | extern irq_desc_t irq_desc [NR_IRQS]; | 88 | extern irq_desc_t irq_desc [NR_IRQS]; |
89 | 89 | ||
90 | /* Return a pointer to the irq descriptor for IRQ. */ | ||
91 | static inline irq_desc_t * | ||
92 | irq_descp (int irq) | ||
93 | { | ||
94 | return irq_desc + irq; | ||
95 | } | ||
96 | |||
97 | #include <asm/hw_irq.h> /* the arch dependent stuff */ | 90 | #include <asm/hw_irq.h> /* the arch dependent stuff */ |
98 | 91 | ||
99 | extern int setup_irq(unsigned int irq, struct irqaction * new); | 92 | extern int setup_irq(unsigned int irq, struct irqaction * new); |