From: Paul Mundt Date: Tue, 26 Oct 2010 07:19:13 +0000 (+0900) Subject: genirq: Add single IRQ reservation helper X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=639bd12f778d55a2632fde5af7d0719abc1871b9;p=linux.git genirq: Add single IRQ reservation helper For cases that wish to reserve a single IRQ at a given place simply provide a wrapper in to the ranged reservation routine. Signed-off-by: Paul Mundt LKML-Reference: <20101026071912.GD4733@linux-sh.org> Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/irq.h b/include/linux/irq.h index e9639115dff1b..abde2527c6996 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -412,6 +412,11 @@ static inline void irq_free_desc(unsigned int irq) irq_free_descs(irq, 1); } +static inline int irq_reserve_irq(unsigned int irq) +{ + return irq_reserve_irqs(irq, 1); +} + #endif /* CONFIG_GENERIC_HARDIRQS */ #endif /* !CONFIG_S390 */