diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-15 14:31:29 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:53:14 +0200 |
commit | c6b7674f323622d86316bf7951ad9cae1ce24642 (patch) | |
tree | 00ff8c061f9c0822c56e46bc59c46dced278f9a9 /kernel/irq/handle.c | |
parent | genirq: consolidate nr_irqs and for_each_irq_desc() (diff) | |
download | linux-c6b7674f323622d86316bf7951ad9cae1ce24642.tar.xz linux-c6b7674f323622d86316bf7951ad9cae1ce24642.zip |
genirq: use inline function for irq_to_desc
For the non sparse irq case an inline function is perfectly fine.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index fb6bdb602a93..c19896f895f9 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -262,20 +262,6 @@ struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = { #endif -#ifndef CONFIG_HAVE_SPARSE_IRQ -struct irq_desc *irq_to_desc(unsigned int irq) -{ - if (irq < nr_irqs) - return &irq_desc[irq]; - - return NULL; -} -struct irq_desc *irq_to_desc_alloc(unsigned int irq) -{ - return irq_to_desc(irq); -} -#endif - /* * What should we do if we get a hw irq event on an illegal vector? * Each architecture has to answer this themself. |