Commit ee32c973 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

genirq: remove irq_to_desc_alloc

Remove the leftover of sparseirqs.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 2cc21ef8
...@@ -1257,11 +1257,7 @@ static void ioapic_register_intr(int irq, unsigned long trigger) ...@@ -1257,11 +1257,7 @@ static void ioapic_register_intr(int irq, unsigned long trigger)
{ {
struct irq_desc *desc; struct irq_desc *desc;
/* first time to use this irq_desc */ desc = irq_to_desc(irq);
if (irq < 16)
desc = irq_to_desc(irq);
else
desc = irq_to_desc_alloc(irq);
if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) ||
trigger == IOAPIC_LEVEL) trigger == IOAPIC_LEVEL)
......
...@@ -70,7 +70,7 @@ void __init init_ISA_irqs (void) ...@@ -70,7 +70,7 @@ void __init init_ISA_irqs (void)
*/ */
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
/* first time call this irq_desc */ /* first time call this irq_desc */
struct irq_desc *desc = irq_to_desc_alloc(i); struct irq_desc *desc = irq_to_desc(i);
desc->status = IRQ_DISABLED; desc->status = IRQ_DISABLED;
desc->action = NULL; desc->action = NULL;
......
...@@ -144,7 +144,7 @@ void __init init_ISA_irqs(void) ...@@ -144,7 +144,7 @@ void __init init_ISA_irqs(void)
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
/* first time call this irq_desc */ /* first time call this irq_desc */
struct irq_desc *desc = irq_to_desc_alloc(i); struct irq_desc *desc = irq_to_desc(i);
desc->status = IRQ_DISABLED; desc->status = IRQ_DISABLED;
desc->action = NULL; desc->action = NULL;
......
...@@ -210,11 +210,6 @@ static inline struct irq_desc *irq_to_desc(unsigned int irq) ...@@ -210,11 +210,6 @@ static inline struct irq_desc *irq_to_desc(unsigned int irq)
return (irq < nr_irqs) ? irq_desc + irq : NULL; return (irq < nr_irqs) ? irq_desc + irq : NULL;
} }
static inline struct irq_desc *irq_to_desc_alloc(unsigned int irq)
{
return irq_to_desc(irq);
}
#ifdef CONFIG_HAVE_DYN_ARRAY #ifdef CONFIG_HAVE_DYN_ARRAY
#define kstat_irqs_this_cpu(DESC) \ #define kstat_irqs_this_cpu(DESC) \
((DESC)->kstat_irqs[smp_processor_id()]) ((DESC)->kstat_irqs[smp_processor_id()])
......
...@@ -28,7 +28,7 @@ void dynamic_irq_init(unsigned int irq) ...@@ -28,7 +28,7 @@ void dynamic_irq_init(unsigned int irq)
unsigned long flags; unsigned long flags;
/* first time to use this irq_desc */ /* first time to use this irq_desc */
desc = irq_to_desc_alloc(irq); desc = irq_to_desc(irq);
if (!desc) { if (!desc) {
WARN(1, KERN_ERR "Trying to initialize invalid IRQ%d\n", irq); WARN(1, KERN_ERR "Trying to initialize invalid IRQ%d\n", irq);
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment