diff options
author | Milton Miller <miltonm@bga.com> | 2011-05-10 15:30:40 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-05-19 01:32:01 -0400 |
commit | 1e8c23013ed0d535e531b3b9cc30200e884f3ff0 (patch) | |
tree | 782c34bc7046e8a92e6e94c5cd262376aacb89cd | |
parent | 3ee62d365b519c0c18c774049efcde84fe51c60c (diff) |
powerpc: Remove virq_to_host
The only references to the irq_map[].host field are internal to
arch/powerpc/kernel/irq.c
Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/include/asm/irq.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/irq.c | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/include/asm/irq.h b/arch/powerpc/include/asm/irq.h index a65d1702643b..1bff591f7f72 100644 --- a/arch/powerpc/include/asm/irq.h +++ b/arch/powerpc/include/asm/irq.h | |||
@@ -129,7 +129,6 @@ struct irq_data; | |||
129 | extern irq_hw_number_t irqd_to_hwirq(struct irq_data *d); | 129 | extern irq_hw_number_t irqd_to_hwirq(struct irq_data *d); |
130 | extern irq_hw_number_t virq_to_hw(unsigned int virq); | 130 | extern irq_hw_number_t virq_to_hw(unsigned int virq); |
131 | extern bool virq_is_host(unsigned int virq, struct irq_host *host); | 131 | extern bool virq_is_host(unsigned int virq, struct irq_host *host); |
132 | extern struct irq_host *virq_to_host(unsigned int virq); | ||
133 | 132 | ||
134 | /** | 133 | /** |
135 | * irq_alloc_host - Allocate a new irq_host data structure | 134 | * irq_alloc_host - Allocate a new irq_host data structure |
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 73cf29078fef..4368b5ed5604 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -516,12 +516,6 @@ bool virq_is_host(unsigned int virq, struct irq_host *host) | |||
516 | } | 516 | } |
517 | EXPORT_SYMBOL_GPL(virq_is_host); | 517 | EXPORT_SYMBOL_GPL(virq_is_host); |
518 | 518 | ||
519 | struct irq_host *virq_to_host(unsigned int virq) | ||
520 | { | ||
521 | return irq_map[virq].host; | ||
522 | } | ||
523 | EXPORT_SYMBOL_GPL(virq_to_host); | ||
524 | |||
525 | static int default_irq_host_match(struct irq_host *h, struct device_node *np) | 519 | static int default_irq_host_match(struct irq_host *h, struct device_node *np) |
526 | { | 520 | { |
527 | return h->of_node != NULL && h->of_node == np; | 521 | return h->of_node != NULL && h->of_node == np; |