diff options
-rw-r--r-- | arch/x86/kernel/io_apic.c | 6 | ||||
-rw-r--r-- | arch/x86/kernel/irqinit_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/irqinit_64.c | 2 | ||||
-rw-r--r-- | include/linux/irq.h | 5 | ||||
-rw-r--r-- | kernel/irq/chip.c | 2 |
5 files changed, 4 insertions, 13 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 683610517d2a..e03bc0f87eef 100644 --- a/arch/x86/kernel/io_apic.c +++ b/arch/x86/kernel/io_apic.c | |||
@@ -1257,11 +1257,7 @@ static void ioapic_register_intr(int irq, unsigned long trigger) | |||
1257 | { | 1257 | { |
1258 | struct irq_desc *desc; | 1258 | struct irq_desc *desc; |
1259 | 1259 | ||
1260 | /* first time to use this irq_desc */ | 1260 | desc = irq_to_desc(irq); |
1261 | if (irq < 16) | ||
1262 | desc = irq_to_desc(irq); | ||
1263 | else | ||
1264 | desc = irq_to_desc_alloc(irq); | ||
1265 | 1261 | ||
1266 | if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || | 1262 | if ((trigger == IOAPIC_AUTO && IO_APIC_irq_trigger(irq)) || |
1267 | trigger == IOAPIC_LEVEL) | 1263 | trigger == IOAPIC_LEVEL) |
diff --git a/arch/x86/kernel/irqinit_32.c b/arch/x86/kernel/irqinit_32.c index 9092103a18eb..a8d35998d308 100644 --- a/arch/x86/kernel/irqinit_32.c +++ b/arch/x86/kernel/irqinit_32.c | |||
@@ -70,7 +70,7 @@ void __init init_ISA_irqs (void) | |||
70 | */ | 70 | */ |
71 | for (i = 0; i < 16; i++) { | 71 | for (i = 0; i < 16; i++) { |
72 | /* first time call this irq_desc */ | 72 | /* first time call this irq_desc */ |
73 | struct irq_desc *desc = irq_to_desc_alloc(i); | 73 | struct irq_desc *desc = irq_to_desc(i); |
74 | 74 | ||
75 | desc->status = IRQ_DISABLED; | 75 | desc->status = IRQ_DISABLED; |
76 | desc->action = NULL; | 76 | desc->action = NULL; |
diff --git a/arch/x86/kernel/irqinit_64.c b/arch/x86/kernel/irqinit_64.c index d17fbc26d96f..ff0235391285 100644 --- a/arch/x86/kernel/irqinit_64.c +++ b/arch/x86/kernel/irqinit_64.c | |||
@@ -144,7 +144,7 @@ void __init init_ISA_irqs(void) | |||
144 | 144 | ||
145 | for (i = 0; i < 16; i++) { | 145 | for (i = 0; i < 16; i++) { |
146 | /* first time call this irq_desc */ | 146 | /* first time call this irq_desc */ |
147 | struct irq_desc *desc = irq_to_desc_alloc(i); | 147 | struct irq_desc *desc = irq_to_desc(i); |
148 | 148 | ||
149 | desc->status = IRQ_DISABLED; | 149 | desc->status = IRQ_DISABLED; |
150 | desc->action = NULL; | 150 | desc->action = NULL; |
diff --git a/include/linux/irq.h b/include/linux/irq.h index 68e0f3f9df30..3f33c7790300 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -210,11 +210,6 @@ static inline struct irq_desc *irq_to_desc(unsigned int irq) | |||
210 | return (irq < nr_irqs) ? irq_desc + irq : NULL; | 210 | return (irq < nr_irqs) ? irq_desc + irq : NULL; |
211 | } | 211 | } |
212 | 212 | ||
213 | static inline struct irq_desc *irq_to_desc_alloc(unsigned int irq) | ||
214 | { | ||
215 | return irq_to_desc(irq); | ||
216 | } | ||
217 | |||
218 | #ifdef CONFIG_HAVE_DYN_ARRAY | 213 | #ifdef CONFIG_HAVE_DYN_ARRAY |
219 | #define kstat_irqs_this_cpu(DESC) \ | 214 | #define kstat_irqs_this_cpu(DESC) \ |
220 | ((DESC)->kstat_irqs[smp_processor_id()]) | 215 | ((DESC)->kstat_irqs[smp_processor_id()]) |
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 570d1ea1db5d..e6f73dbfcc3d 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -28,7 +28,7 @@ void dynamic_irq_init(unsigned int irq) | |||
28 | unsigned long flags; | 28 | unsigned long flags; |
29 | 29 | ||
30 | /* first time to use this irq_desc */ | 30 | /* first time to use this irq_desc */ |
31 | desc = irq_to_desc_alloc(irq); | 31 | desc = irq_to_desc(irq); |
32 | if (!desc) { | 32 | if (!desc) { |
33 | WARN(1, KERN_ERR "Trying to initialize invalid IRQ%d\n", irq); | 33 | WARN(1, KERN_ERR "Trying to initialize invalid IRQ%d\n", irq); |
34 | return; | 34 | return; |