irqdomain: Use irq_domain_get_of_node() instead of direct field access
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-omap2 / omap-wakeupgen.c
index e1d2e991d17a31fc15f1c44616c9b4b7f9de3a84..f0f7ffd64b1a898fe83bd08dc4fe784c8047f996 100644 (file)
@@ -406,7 +406,7 @@ static int wakeupgen_domain_xlate(struct irq_domain *domain,
                                  unsigned long *out_hwirq,
                                  unsigned int *out_type)
 {
-       if (domain->of_node != controller)
+       if (irq_domain_get_of_node(domain) != controller)
                return -EINVAL; /* Shouldn't happen, really... */
        if (intsize != 3)
                return -EINVAL; /* Not GIC compliant */
@@ -441,7 +441,7 @@ static int wakeupgen_domain_alloc(struct irq_domain *domain,
                                              &wakeupgen_chip, NULL);
 
        parent_args = *args;
-       parent_args.np = domain->parent->of_node;
+       parent_args.np = irq_domain_get_of_node(domain->parent);
        return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_args);
 }