aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-02-14 16:06:51 -0500
committerGrant Likely <grant.likely@secretlab.ca>2012-02-16 03:36:46 -0500
commit6d9285b00f776eebe459a858ebf07b56c36c60d2 (patch)
tree30bf9adb6a25125dc5919f0128b74cfbf2a73d3f /arch/powerpc/kernel/irq.c
parent4bbdd45afdae208a7c4ade89cf602f89a6397cff (diff)
irq_domain/powerpc: Eliminate virq_is_host()
There is only one user, and it is trivial to open-code. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Milton Miller <miltonm@bga.com> Tested-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r--arch/powerpc/kernel/irq.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 03c95f03d79..269fbd5ac62 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -510,13 +510,6 @@ irq_hw_number_t virq_to_hw(unsigned int virq)
510} 510}
511EXPORT_SYMBOL_GPL(virq_to_hw); 511EXPORT_SYMBOL_GPL(virq_to_hw);
512 512
513bool virq_is_host(unsigned int virq, struct irq_domain *host)
514{
515 struct irq_data *irq_data = irq_get_irq_data(virq);
516 return irq_data ? irq_data->domain == host : false;
517}
518EXPORT_SYMBOL_GPL(virq_is_host);
519
520static int default_irq_host_match(struct irq_domain *h, struct device_node *np) 513static int default_irq_host_match(struct irq_domain *h, struct device_node *np)
521{ 514{
522 return h->of_node != NULL && h->of_node == np; 515 return h->of_node != NULL && h->of_node == np;