]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/irq/handle.c
genirq: use inline function for irq_to_desc
[linux-2.6-omap-h63xx.git] / kernel / irq / handle.c
index fb6bdb602a935a858c7943688443efe4227a8d8e..c19896f895f96e255290ebc2e87461800df55b95 100644 (file)
@@ -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.