[patch 47/47] genirq: Remove the old sparse irq allocator function
From: Thomas Gleixner
Date: Thu Sep 30 2010 - 19:19:01 EST
Last user is gone. Remove it.
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
---
include/linux/irq.h | 2 --
kernel/irq/irqdesc.c | 9 ---------
2 files changed, 11 deletions(-)
Index: linux-2.6-tip/include/linux/irq.h
===================================================================
--- linux-2.6-tip.orig/include/linux/irq.h
+++ linux-2.6-tip/include/linux/irq.h
@@ -261,8 +261,6 @@ struct irq_desc {
extern struct irq_desc irq_desc[NR_IRQS];
#endif
-extern struct irq_desc *irq_to_desc_alloc_node(unsigned int irq, int node);
-
int irq_alloc_descs(unsigned int irq, unsigned int from, unsigned int cnt, int node);
static inline int irq_alloc_desc(int node)
Index: linux-2.6-tip/kernel/irq/irqdesc.c
===================================================================
--- linux-2.6-tip.orig/kernel/irq/irqdesc.c
+++ linux-2.6-tip/kernel/irq/irqdesc.c
@@ -192,15 +192,6 @@ err:
return -ENOMEM;
}
-struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
-{
- int res = irq_alloc_descs(irq, irq, 1, node);
-
- if (res == -EEXIST || res == irq)
- return irq_to_desc(irq);
- return NULL;
-}
-
int __init early_irq_init(void)
{
int i, initcnt, node = first_online_node;
--
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/