mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
genirq: use inline function for irq_to_desc
For the non sparse irq case an inline function is perfectly fine. Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
70dd4d992a
commit
c6b7674f32
2 changed files with 13 additions and 16 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue