diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2012-04-03 09:11:04 -0400 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2012-04-11 00:39:17 -0400 |
| commit | a699e4e49ec3fb62c4a44394357d14081df10bef (patch) | |
| tree | 4a64e6fd8bc6a71fe7212a69f552f4aef3bd473c /arch/c6x/kernel | |
| parent | 5b7526e3a640e491075557acaa842c59c652c0c3 (diff) | |
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 'arch/c6x/kernel')
| -rw-r--r-- | arch/c6x/kernel/irq.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/c6x/kernel/irq.c b/arch/c6x/kernel/irq.c index 65b8ddf54b44..c90fb5e82ad7 100644 --- a/arch/c6x/kernel/irq.c +++ b/arch/c6x/kernel/irq.c | |||
| @@ -130,16 +130,3 @@ int arch_show_interrupts(struct seq_file *p, int prec) | |||
| 130 | seq_printf(p, "%*s: %10lu\n", prec, "Err", irq_err_count); | 130 | seq_printf(p, "%*s: %10lu\n", prec, "Err", irq_err_count); |
| 131 | return 0; | 131 | return 0; |
| 132 | } | 132 | } |
| 133 | |||
| 134 | irq_hw_number_t irqd_to_hwirq(struct irq_data *d) | ||
| 135 | { | ||
| 136 | return d->hwirq; | ||
| 137 | } | ||
| 138 | EXPORT_SYMBOL_GPL(irqd_to_hwirq); | ||
| 139 | |||
| 140 | irq_hw_number_t virq_to_hw(unsigned int virq) | ||
| 141 | { | ||
| 142 | struct irq_data *irq_data = irq_get_irq_data(virq); | ||
| 143 | return WARN_ON(!irq_data) ? 0 : irq_data->hwirq; | ||
| 144 | } | ||
| 145 | EXPORT_SYMBOL_GPL(virq_to_hw); | ||
