diff options
author | Olof Johansson <olof@lixom.net> | 2007-06-04 14:47:04 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-25 17:02:05 +1000 |
commit | 35923f12e42a3baf4ac6da7c05cf5f7478e5a7c6 (patch) | |
tree | d0fcdb4a7f15cae68c8bb4dbb8346b494503410e /include/asm-powerpc | |
parent | b0e80206cc42334032f18edee0ab591b0f275e12 (diff) | |
download | kernel-crypto-35923f12e42a3baf4ac6da7c05cf5f7478e5a7c6.tar.gz kernel-crypto-35923f12e42a3baf4ac6da7c05cf5f7478e5a7c6.tar.xz kernel-crypto-35923f12e42a3baf4ac6da7c05cf5f7478e5a7c6.zip |
[POWERPC] Uninline and export virq_to_hw()
Uninline virq_to_hw and export it so modules can use it. The alternative
would be to export the irq_map array instead, but it's an infrequently
called function, and keeping the array unexported seems considerably
cleaner.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/irq.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index 4734cc178db..05dd5a3eb3a 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h @@ -138,10 +138,7 @@ 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; -} +extern irq_hw_number_t virq_to_hw(unsigned int virq); /** * irq_alloc_host - Allocate a new irq_host data structure |