genirq: Move irq_has_action() into core code
[linux-2.6-microblaze.git] / include / linux / irqdesc.h
index 5745491..385a4fa 100644 (file)
@@ -179,12 +179,7 @@ int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq,
 /* Test to see if a driver has successfully requested an irq */
 static inline int irq_desc_has_action(struct irq_desc *desc)
 {
-       return desc->action != NULL;
-}
-
-static inline int irq_has_action(unsigned int irq)
-{
-       return irq_desc_has_action(irq_to_desc(irq));
+       return desc && desc->action != NULL;
 }
 
 /**