diff options
Diffstat (limited to 'include/linux/irq.h')
| -rw-r--r-- | include/linux/irq.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index 69855b23dff9..6f463606c318 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
| @@ -372,6 +372,13 @@ set_irq_chained_handler(unsigned int irq, | |||
| 372 | extern int create_irq(void); | 372 | extern int create_irq(void); |
| 373 | extern void destroy_irq(unsigned int irq); | 373 | extern void destroy_irq(unsigned int irq); |
| 374 | 374 | ||
| 375 | /* Test to see if a driver has successfully requested an irq */ | ||
| 376 | static inline int irq_has_action(unsigned int irq) | ||
| 377 | { | ||
| 378 | struct irq_desc *desc = irq_desc + irq; | ||
| 379 | return desc->action != NULL; | ||
| 380 | } | ||
| 381 | |||
| 375 | /* Dynamic irq helper functions */ | 382 | /* Dynamic irq helper functions */ |
| 376 | extern void dynamic_irq_init(unsigned int irq); | 383 | extern void dynamic_irq_init(unsigned int irq); |
| 377 | extern void dynamic_irq_cleanup(unsigned int irq); | 384 | extern void dynamic_irq_cleanup(unsigned int irq); |
