Message ID | 160614995899.11115.18133033549355488513.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [irqchip:,irq/irqchip-next] irqchip/exiu: Fix the index of fwspec for IRQ type | expand |
diff --git a/drivers/irqchip/irq-sni-exiu.c b/drivers/irqchip/irq-sni-exiu.c index 1d02762..abd011f 100644 --- a/drivers/irqchip/irq-sni-exiu.c +++ b/drivers/irqchip/irq-sni-exiu.c @@ -136,7 +136,7 @@ static int exiu_domain_translate(struct irq_domain *domain, if (fwspec->param_count != 2) return -EINVAL; *hwirq = fwspec->param[0]; - *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK; + *type = fwspec->param[1] & IRQ_TYPE_SENSE_MASK; } return 0; }