summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index f5fa5d84aa06..90068f914911 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -354,7 +354,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
&name);
r->start = r->end = irq;
- r->flags = IORESOURCE_IRQ;
+ r->flags = IORESOURCE_IRQ | irqd_get_trigger_type(irq_get_irq_data(irq));
r->name = name ? name : of_node_full_name(dev);
}
OpenPOWER on IntegriCloud