irqdomain: Use irq_domain_get_of_node() instead of direct field access
[linux-drm-fsl-dcu.git] / drivers / irqchip / irq-tegra.c
index 2fd89eb88f3a29bc716ec1daf76ad4085e6a743d..7bbf22658c318ae350a10d5747000827ef105cef 100644 (file)
@@ -227,7 +227,7 @@ static int tegra_ictlr_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 */
@@ -267,7 +267,7 @@ static int tegra_ictlr_domain_alloc(struct irq_domain *domain,
        }
 
        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);
 }