diff options
author | Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> | 2015-12-10 08:55:28 -0800 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-12-21 13:49:49 +0000 |
commit | 75aba7b0e9ac416ca53c0c97680b8e9aedf09284 (patch) | |
tree | e7a35ae62453184a1ed1fd43f329ea3379e09563 /drivers/irqchip | |
parent | 471036b2b895789c2305428fd879006468e4a758 (diff) | |
download | blackbird-op-linux-75aba7b0e9ac416ca53c0c97680b8e9aedf09284.tar.gz blackbird-op-linux-75aba7b0e9ac416ca53c0c97680b8e9aedf09284.zip |
irqdomain: Introduce is_fwnode_irqchip helper
Since there will be several places checking if fwnode.type
is equal FWNODE_IRQCHIP, this patch adds a convenient function
for this purpose.
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-gic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index abf2ffaed392..fcd327f49e8e 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -972,7 +972,7 @@ static int gic_irq_domain_translate(struct irq_domain *d, return 0; } - if (fwspec->fwnode->type == FWNODE_IRQCHIP) { + if (is_fwnode_irqchip(fwspec->fwnode)) { if(fwspec->param_count != 2) return -EINVAL; |