oxnas: prepare platform and drivers for Linux 4.4
[lede-git/.git] / target / linux / oxnas / files / drivers / irqchip / irq-rps.c
index 48b5d6865ddd2f191d795cd2c96f1dd93035d11b..2c4f6889e8b5fd1116a44d1b72758cbe59d7cfe2 100644 (file)
@@ -62,7 +62,11 @@ static int rps_irq_domain_xlate(struct irq_domain *d,
                                unsigned long *out_hwirq,
                                unsigned int *out_type)
 {
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
        if (d->of_node != controller)
+#else
+       if (irq_domain_get_of_node(d) != controller)
+#endif
                return -EINVAL;
        if (intsize < 1)
                return -EINVAL;