aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-29 12:46:55 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-12 10:53:44 -0400
commitb7b29338dc7111ed8bd4d6555d84afae13ebe752 (patch)
tree4c3159ea8bb0489ba463a061d3e6446dbfb45af2 /include/linux/irq.h
parentb7d0d8258a9f71949b810e0f82a3d75088f4d364 (diff)
genirq: Sanitize dynamic irq handling
Use the cleanup functions of the dynamic allocator. No need to have separate implementations. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 49702b22883e..e9639115dff1 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -326,11 +326,15 @@ extern unsigned int create_irq_nr(unsigned int irq_want, int node);
326extern int create_irq(void); 326extern int create_irq(void);
327extern void destroy_irq(unsigned int irq); 327extern void destroy_irq(unsigned int irq);
328 328
329/* Dynamic irq helper functions */ 329/*
330extern void dynamic_irq_init(unsigned int irq); 330 * Dynamic irq helper functions. Obsolete. Use irq_alloc_desc* and
331void dynamic_irq_init_keep_chip_data(unsigned int irq); 331 * irq_free_desc instead.
332 */
332extern void dynamic_irq_cleanup(unsigned int irq); 333extern void dynamic_irq_cleanup(unsigned int irq);
333void dynamic_irq_cleanup_keep_chip_data(unsigned int irq); 334static inline void dynamic_irq_init(unsigned int irq)
335{
336 dynamic_irq_cleanup(irq);
337}
334 338
335/* Set/get chip/data for an IRQ: */ 339/* Set/get chip/data for an IRQ: */
336extern int set_irq_chip(unsigned int irq, struct irq_chip *chip); 340extern int set_irq_chip(unsigned int irq, struct irq_chip *chip);