summaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-04-03 07:11:04 -0600
committerGrant Likely <grant.likely@secretlab.ca>2012-04-10 22:39:17 -0600
commita699e4e49ec3fb62c4a44394357d14081df10bef (patch)
tree4a64e6fd8bc6a71fe7212a69f552f4aef3bd473c /include/linux/irq.h
parent5b7526e3a640e491075557acaa842c59c652c0c3 (diff)
downloadlinux-stable-a699e4e49ec3fb62c4a44394357d14081df10bef.tar.gz
linux-stable-a699e4e49ec3fb62c4a44394357d14081df10bef.tar.bz2
linux-stable-a699e4e49ec3fb62c4a44394357d14081df10bef.zip
irq: Kill pointless irqd_to_hw export
It makes no sense to export this trivial function. Make it a static inline instead. This patch also drops virq_to_hw from arch/c6x since it is unused by that architecture. v2: Move irq_hw_number_t into types.h to fix ARM build failure Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index bff29c58da23..7810406f3d80 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -263,6 +263,11 @@ static inline void irqd_clr_chained_irq_inprogress(struct irq_data *d)
d->state_use_accessors &= ~IRQD_IRQ_INPROGRESS;
}
+static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d)
+{
+ return d->hwirq;
+}
+
/**
* struct irq_chip - hardware interrupt chip descriptor
*