irqdomain: Use irq_domain_get_of_node() instead of direct field access
[deliverable/linux.git] / arch / arm / mach-imx / gpc.c
index 8c4467fad8370c73374ff104209b779e580852e1..7b32255028fe379ebba3bf873cb4ece893cf42a1 100644 (file)
@@ -188,7 +188,7 @@ static int imx_gpc_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 */
@@ -223,7 +223,7 @@ static int imx_gpc_domain_alloc(struct irq_domain *domain,
                                              &imx_gpc_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, irq, nr_irqs, &parent_args);
 }
 
This page took 0.033555 seconds and 5 git commands to generate.