diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-29 12:46:55 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:53:44 -0400 |
| commit | b7b29338dc7111ed8bd4d6555d84afae13ebe752 (patch) | |
| tree | 4c3159ea8bb0489ba463a061d3e6446dbfb45af2 /include/linux | |
| parent | b7d0d8258a9f71949b810e0f82a3d75088f4d364 (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')
| -rw-r--r-- | include/linux/irq.h | 12 |
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); | |||
| 326 | extern int create_irq(void); | 326 | extern int create_irq(void); |
| 327 | extern void destroy_irq(unsigned int irq); | 327 | extern void destroy_irq(unsigned int irq); |
| 328 | 328 | ||
| 329 | /* Dynamic irq helper functions */ | 329 | /* |
| 330 | extern void dynamic_irq_init(unsigned int irq); | 330 | * Dynamic irq helper functions. Obsolete. Use irq_alloc_desc* and |
| 331 | void dynamic_irq_init_keep_chip_data(unsigned int irq); | 331 | * irq_free_desc instead. |
| 332 | */ | ||
| 332 | extern void dynamic_irq_cleanup(unsigned int irq); | 333 | extern void dynamic_irq_cleanup(unsigned int irq); |
| 333 | void dynamic_irq_cleanup_keep_chip_data(unsigned int irq); | 334 | static 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: */ |
| 336 | extern int set_irq_chip(unsigned int irq, struct irq_chip *chip); | 340 | extern int set_irq_chip(unsigned int irq, struct irq_chip *chip); |
