[PATCH] msi: simplify msi sanity checks by adding with generic irq code
[deliverable/linux.git] / include / linux / irq.h
index 69855b23dff949720345f14b0ff93066cddbc49a..6f463606c318ed46bbfdc0427f219023b1da3860 100644 (file)
@@ -372,6 +372,13 @@ set_irq_chained_handler(unsigned int irq,
 extern int create_irq(void);
 extern void destroy_irq(unsigned int irq);
 
+/* Test to see if a driver has successfully requested an irq */
+static inline int irq_has_action(unsigned int irq)
+{
+       struct irq_desc *desc = irq_desc + irq;
+       return desc->action != NULL;
+}
+
 /* Dynamic irq helper functions */
 extern void dynamic_irq_init(unsigned int irq);
 extern void dynamic_irq_cleanup(unsigned int irq);
This page took 0.029821 seconds and 5 git commands to generate.