[ARM] msm: irq: fix lockdep issues

Signed-off-by: Brian Swetland <swetland@google.com>
This commit is contained in:
Arve Hjønnevåg 2007-12-01 18:05:26 -08:00 committed by Daniel Walker
parent 36cf1b55b4
commit d6ada25776

View File

@ -101,11 +101,11 @@ static int msm_irq_set_type(unsigned int irq, unsigned int flow_type)
if (flow_type & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) {
writel(readl(treg) | b, treg);
set_irq_handler(irq, handle_edge_irq);
irq_desc[irq].handle_irq = handle_edge_irq;
}
if (flow_type & (IRQF_TRIGGER_HIGH | IRQF_TRIGGER_LOW)) {
writel(readl(treg) & (~b), treg);
set_irq_handler(irq, handle_level_irq);
irq_desc[irq].handle_irq = handle_level_irq;
}
return 0;
}