irqdomain: Let irq_find_host default to DOMAIN_BUS_WIRED
[muen/linux.git] / include / linux / irqdomain.h
index 48c7e86bb5566798aba1b1b132ab242b75b05ea9..dccfa65aee96446cdd506e155b1cd3fd0c920707 100644 (file)
@@ -301,7 +301,13 @@ static inline struct irq_domain *irq_find_matching_host(struct device_node *node
 
 static inline struct irq_domain *irq_find_host(struct device_node *node)
 {
-       return irq_find_matching_host(node, DOMAIN_BUS_ANY);
+       struct irq_domain *d;
+
+       d = irq_find_matching_host(node, DOMAIN_BUS_WIRED);
+       if (!d)
+               d = irq_find_matching_host(node, DOMAIN_BUS_ANY);
+
+       return d;
 }
 
 /**