summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2015-07-28 17:35:21 +0800
committerGraeme Gregory <graeme.gregory@linaro.org>2015-08-31 12:14:57 +0100
commit6d84b104bc4dbd114f9f7d037c12317f0db4c9ad (patch)
tree29d9e9afa5d28c1b07c307f0d02f6edef980acc8
parentcd039280b7572dc4f092900caa551dd420709d14 (diff)
irqchip / GICv3: remove the useless comparision of device node in xlate
In gic_irq_domain_xlate(), we match the domain's device node to the controller and it turns out pretty useless, because we're always registering the GIC domain with its device_node on DT, this is really guaranteed to match. Since we unify the way of matching irqdomain in DT and ACPI, this is also a blocker of making this function usable in the context of ACPI, so just remove it. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
-rw-r--r--drivers/irqchip/irq-gic-v3.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
index 19a65de08418..c0b96c62bd0e 100644
--- a/drivers/irqchip/irq-gic-v3.c
+++ b/drivers/irqchip/irq-gic-v3.c
@@ -706,8 +706,6 @@ static int gic_irq_domain_xlate(struct irq_domain *d,
const u32 *intspec, unsigned int intsize,
unsigned long *out_hwirq, unsigned int *out_type)
{
- if (irq_domain_get_of_node(d) != controller)
- return -EINVAL;
if (intsize < 3)
return -EINVAL;