From: Geoff Levand Date: Wed, 22 Nov 2006 23:46:48 +0000 (+0100) Subject: [POWERPC] add virq_to_hw accessor routine X-Git-Tag: v2.6.20-rc2~6^2~13^2~13^2~61 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e34226d2cd443a67f46fc531e3a6bc6e03843ce2;p=linux-2.6-omap-h63xx.git [POWERPC] add virq_to_hw accessor routine This adds an accessor routine virq_to_hw() to the virq routines which hides the implementation details of the virq to hwirq map. Acked-by: Benjamin Herrenschmidt Signed-off-by: Geoff Levand Signed-off-by: Arnd Bergmann --- diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index f960f5346f4..46476e9a494 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h @@ -135,6 +135,10 @@ struct irq_map_entry { extern struct irq_map_entry irq_map[NR_IRQS]; +static inline irq_hw_number_t virq_to_hw(unsigned int virq) +{ + return irq_map[virq].hwirq; +} /** * irq_alloc_host - Allocate a new irq_host data structure