aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/handle.c14
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 = {
262 262
263#endif 263#endif
264 264
265#ifndef CONFIG_HAVE_SPARSE_IRQ
266struct irq_desc *irq_to_desc(unsigned int irq)
267{
268 if (irq < nr_irqs)
269 return &irq_desc[irq];
270
271 return NULL;
272}
273struct irq_desc *irq_to_desc_alloc(unsigned int irq)
274{
275 return irq_to_desc(irq);
276}
277#endif
278
279/* 265/*
280 * What should we do if we get a hw irq event on an illegal vector? 266 * What should we do if we get a hw irq event on an illegal vector?
281 * Each architecture has to answer this themself. 267 * Each architecture has to answer this themself.