aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-06-04 00:47:04 -0400
committerPaul Mackerras <paulus@samba.org>2007-07-01 23:29:21 -0400
commit9f7905812e5919862acb6ede63e10d3d1bb4958e (patch)
tree8d0489c4a83888996843490d9ac0d85e471b7538 /arch/powerpc
parentee5d1b7f2a01ce4d95ca247b5a499b72f31cdbe8 (diff)
[POWERPC] Uninline and export virq_to_hw() for the pasemi_mac driver
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. This is needed so that the pasemi_mac driver can be compiled as a module. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/irq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 42c8ed6ed528..c2b84c64db20 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -412,6 +412,12 @@ struct irq_map_entry irq_map[NR_IRQS];
412static unsigned int irq_virq_count = NR_IRQS; 412static unsigned int irq_virq_count = NR_IRQS;
413static struct irq_host *irq_default_host; 413static struct irq_host *irq_default_host;
414 414
415irq_hw_number_t virq_to_hw(unsigned int virq)
416{
417 return irq_map[virq].hwirq;
418}
419EXPORT_SYMBOL_GPL(virq_to_hw);
420
415struct irq_host *irq_alloc_host(unsigned int revmap_type, 421struct irq_host *irq_alloc_host(unsigned int revmap_type,
416 unsigned int revmap_arg, 422 unsigned int revmap_arg,
417 struct irq_host_ops *ops, 423 struct irq_host_ops *ops,