In case of ACPI dt node is not used so this check is skipped. Also ACPI handle is not initialised at this point so cannot OR the dt check with the ACPI check.
Signed-off-by: Amit Daniel Kachhap amit.daniel@samsung.com --- drivers/irqchip/irq-gic.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 039b4a0..2f18e2f 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -834,8 +834,10 @@ static int gic_irq_domain_xlate(struct irq_domain *d, const u32 *intspec, unsigned int intsize, unsigned long *out_hwirq, unsigned int *out_type) { +#ifndef CONFIG_ACPI if (d->of_node != controller) return -EINVAL; +#endif if (intsize < 3) return -EINVAL;