diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-10-13 07:51:29 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-10-13 13:01:23 -0400 |
commit | 5d4c9bc7767bc86eb9a0e66df783e3fbada7dc97 (patch) | |
tree | 0651374fe7c186cbf7825705b3d7f7dd1059f69e /arch/arm/mach-imx/gpc.c | |
parent | e50226b4b86755e65aef2129e94d952fee3df722 (diff) |
irqdomain: Use irq_domain_get_of_node() instead of direct field access
The struct irq_domain contains a "struct device_node *" field
(of_node) that is almost the only link between the irqdomain
and the device tree infrastructure.
In order to prepare for the removal of that field, convert all
users to use irq_domain_get_of_node() instead.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-and-tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Graeme Gregory <graeme@xora.org.uk>
Cc: Jake Oshins <jakeo@microsoft.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Link: http://lkml.kernel.org/r/1444737105-31573-2-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/gpc.c')
-rw-r--r-- | arch/arm/mach-imx/gpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 8c4467fad837..7b32255028fe 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c | |||
@@ -188,7 +188,7 @@ static int imx_gpc_domain_xlate(struct irq_domain *domain, | |||
188 | unsigned long *out_hwirq, | 188 | unsigned long *out_hwirq, |
189 | unsigned int *out_type) | 189 | unsigned int *out_type) |
190 | { | 190 | { |
191 | if (domain->of_node != controller) | 191 | if (irq_domain_get_of_node(domain) != controller) |
192 | return -EINVAL; /* Shouldn't happen, really... */ | 192 | return -EINVAL; /* Shouldn't happen, really... */ |
193 | if (intsize != 3) | 193 | if (intsize != 3) |
194 | return -EINVAL; /* Not GIC compliant */ | 194 | return -EINVAL; /* Not GIC compliant */ |
@@ -223,7 +223,7 @@ static int imx_gpc_domain_alloc(struct irq_domain *domain, | |||
223 | &imx_gpc_chip, NULL); | 223 | &imx_gpc_chip, NULL); |
224 | 224 | ||
225 | parent_args = *args; | 225 | parent_args = *args; |
226 | parent_args.np = domain->parent->of_node; | 226 | parent_args.np = irq_domain_get_of_node(domain->parent); |
227 | return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, &parent_args); | 227 | return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, &parent_args); |
228 | } | 228 | } |
229 | 229 | ||