Message ID | 1323896156-20692-1-git-send-email-linus.walleij@stericsson.com |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 99834e58..78a1e66 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -74,7 +74,7 @@ struct irq_domain { static inline unsigned int irq_domain_to_irq(struct irq_domain *d, unsigned long hwirq) { - if (d->ops->to_irq) + if (d->ops && d->ops->to_irq) return d->ops->to_irq(d, hwirq); if (WARN_ON(hwirq < d->hwirq_base)) return 0;