aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/irq/irqdesc.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-05-07 15:44:22 +0000
committerThomas Gleixner <tglx@linutronix.de>2014-05-16 14:05:22 +0200
commitc940e01c94e73a2a5318f1b82038e0746aaec753 (patch)
tree87ec46bf3a6767df46713d62a007cc1ae42e8353 /kernel/irq/irqdesc.c
parentgenirq: Remove irq_reserve_irq[s] (diff)
downloadwireguard-linux-c940e01c94e73a2a5318f1b82038e0746aaec753.tar.xz
wireguard-linux-c940e01c94e73a2a5318f1b82038e0746aaec753.zip
genirq: Replace dynamic_irq_init/cleanup
Create a new interface and confine it with a config switch which makes clear that this is just legacy support and not to be used for new code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Grant Likely <grant.likely@linaro.org> Tested-by: Tony Luck <tony.luck@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20140507154340.574437049@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/irq/irqdesc.c')
-rw-r--r--kernel/irq/irqdesc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index d514ed6080e1..7f267799a717 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -306,6 +306,13 @@ void irq_mark_irq(unsigned int irq)
mutex_unlock(&sparse_irq_lock);
}
+#ifdef CONFIG_GENERIC_IRQ_LEGACY
+void irq_init_desc(unsigned int irq)
+{
+ dynamic_irq_cleanup(irq);
+}
+#endif
+
#endif /* !CONFIG_SPARSE_IRQ */
/**